Skip to content

Delete a comment

DELETE
/v1/comments/{commentId}
curl --request DELETE \
--url https://api.varman.io/v1/comments/cmt_abc123def456 \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <X-API-Key>' \
--data '{ "userId": "usr_abc123def456" }'

Delete a comment in Varman. Create and manage collaboration comments on compliance entities such as tasks, policies, risks, vendors, and findings.

commentId
required
string

Example

cmt_abc123def456

Unique comment identifier

Delete comment request body

Media typeapplication/json
object
userId

User ID of the comment author (required for API key auth, ignored for JWT auth)

string

Example

usr_abc123def456

Comment deleted successfully

Media typeapplication/json
object
success
boolean
deletedCommentId
string
message
string

Example

{
"success": true,
"deletedCommentId": "cmt_abc123def456",
"message": "Comment deleted successfully"
}

Unauthorized - Invalid authentication

Media typeapplication/json
object
message
string

Example

{
"message": "Unauthorized"
}

Comment not found

Media typeapplication/json
object
message
string

Example

{
"message": "Comment with ID cmt_abc123def456 not found"
}