Skip to main content

Change a comment you wrote.

PATCH/api/v1/annotations/{annotation_id}/comments/{annotation_comment_id}annotations:write

Needs Edit Document Notes. Only the author of a comment changes it, and only while they can still see its annotation. Only the fields sent change.

Scopeannotations:write
AsynchronousNo
MCP toolupdate_annotation_comment
Portal permissionsedit_document_notes

Parameters​

NameInTypeRequiredDescription
annotation_idpathstringRequired
annotation_comment_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Request body​

Content typeType
application/jsonAnnotationCommentPatchInput
application/merge-patch+jsonAnnotationCommentPatchInput

Responses​

StatusDescriptionBody
200Success.application/json AnnotationComment or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

AnnotationComment​

FieldTypeRequiredDescription
annotation_comment_idstringRequired
annotation_idstringRequired
comment_jsonstring or nullRequiredThe rich-text form of the comment, when it has one.
comment_textstringRequired
created_byUserRefRequired
created_datestring or nullRequired
reply_toAnnotationCommentRef or nullRequiredThe comment this one answers; null for a comment that starts a thread.

AnnotationCommentPatchInput​

FieldTypeRequiredDescription
annotation_comment_idstring or nullOptional
annotation_idstring or nullOptional
comment_jsonstring or nullOptionalnull removes the rich-text form.
comment_textstring or nullOptional
created_byUserRefInput or nullOptional
created_datestring or nullOptional
reply_toAnnotationCommentRefEchoInput or nullOptional

AnnotationCommentRef​

FieldTypeRequiredDescription
annotation_comment_idstringRequired

AnnotationCommentRefEchoInput​

FieldTypeRequiredDescription
annotation_comment_idstring or nullOptional

UserRef​

FieldTypeRequiredDescription
display_namestringRequired
kindstring: user, system, integration or stringRequired
user_idstring or nullRequired

UserRefInput​

FieldTypeRequiredDescription
display_namestringOptional
kindstring: user, system, integrationOptional
user_idstring or nullOptional