Update a comment
const url = 'https://api.varman.io/v1/comments/cmt_abc123def456';const options = { method: 'PUT', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"content":"This task needs to be completed by end of week (updated)","contextUrl":"https://app.example.com/org_abc123/risk/rsk_abc123?taskItemId=tki_abc123#task-items","userId":"usr_abc123def456"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.varman.io/v1/comments/cmt_abc123def456 \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "content": "This task needs to be completed by end of week (updated)", "contextUrl": "https://app.example.com/org_abc123/risk/rsk_abc123?taskItemId=tki_abc123#task-items", "userId": "usr_abc123def456" }'Update a comment in Varman. Create and manage collaboration comments on compliance entities such as tasks, policies, risks, vendors, and findings.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
cmt_abc123def456Unique comment identifier
Request Bodyrequired
Section titled “Request Bodyrequired”object
Updated content of the comment (plain text or serialized Tiptap JSON). Limited to 2000 characters of visible text; maxLength bounds the serialized payload size, not the visible text.
Example
This task needs to be completed by end of week (updated)Optional URL of the page where the comment was updated, used for deep-linking in notifications
Example
https://app.example.com/org_abc123/risk/rsk_abc123?taskItemId=tki_abc123#task-itemsUser ID of the comment author (required for API key auth, ignored for JWT auth)
Example
usr_abc123def456Responses
Section titled “Responses”Comment updated successfully
object
Unique identifier for the comment
Comment content
Comment author information
object
User ID
User name
User email
User profile image URL
object
Whether the user is deactivated
Attachment metadata (URLs generated on-demand)
object
Unique identifier for the attachment
Original filename
File type/MIME type
Upload timestamp
Comment creation timestamp
Example
{ "id": "cmt_abc123def456", "content": "This task needs to be completed by end of week", "author": { "id": "usr_abc123def456", "name": "John Doe", "email": "john.doe@company.com", "image": "https://example.com/avatar.jpg", "deactivated": false }, "attachments": [ { "id": "att_abc123def456", "name": "document.pdf", "type": "application/pdf", "createdAt": "2024-01-15T10:30:00Z" } ], "createdAt": "2024-01-15T10:30:00Z"}