Skip to main content

Comment on an annotation, or reply to a comment.

POST/api/v1/annotations/{annotation_id}/commentsannotations:write

Needs Create Document Notes. Seeing the annotation is enough: a reviewer who can only read a markup may still comment on it. reply_to answers another comment of the same annotation. Viewers of the file see the comment appear.

Scopeannotations:write
AsynchronousNo
MCP toolcreate_annotation_comment
Portal permissionscreate_document_notes

Parameters​

NameInTypeRequiredDescription
annotation_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Request body​

Content typeType
application/jsonAnnotationCommentCreateInput

Responses​

StatusDescriptionBody
201Success.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
409idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_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.

AnnotationCommentCreateInput​

FieldTypeRequiredDescription
comment_jsonstring or nullOptionalThe rich-text form of the comment, as the viewer's editor saves it.
comment_textstringRequired
reply_toAnnotationCommentRefInput or nullOptionalAnswer this comment of the same annotation.

AnnotationCommentRef​

FieldTypeRequiredDescription
annotation_comment_idstringRequired

AnnotationCommentRefInput​

FieldTypeRequiredDescription
annotation_comment_idstringRequired

UserRef​

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