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.
| Scope | annotations:write |
| Asynchronous | No |
| MCP tool | create_annotation_comment |
| Portal permissions | create_document_notes |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
annotation_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
Idempotency-Key | header | string | Optional | max 255 |
Request body
| Content type | Type |
|---|---|
application/json | AnnotationCommentCreateInput |
Responses
| Status | Description | Body |
|---|---|---|
201 | Success. | application/json AnnotationComment or object |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
409 | idempotency_in_progress | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | idempotency_key_reused, validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
AnnotationComment
| Field | Type | Required | Description |
|---|---|---|---|
annotation_comment_id | string | Required | |
annotation_id | string | Required | |
comment_json | string or null | Required | The rich-text form of the comment, when it has one. |
comment_text | string | Required | |
created_by | UserRef | Required | |
created_date | string or null | Required | |
reply_to | AnnotationCommentRef or null | Required | The comment this one answers; null for a comment that starts a thread. |
AnnotationCommentCreateInput
| Field | Type | Required | Description |
|---|---|---|---|
comment_json | string or null | Optional | The rich-text form of the comment, as the viewer's editor saves it. |
comment_text | string | Required | |
reply_to | AnnotationCommentRefInput or null | Optional | Answer this comment of the same annotation. |
AnnotationCommentRef
| Field | Type | Required | Description |
|---|---|---|---|
annotation_comment_id | string | Required |
AnnotationCommentRefInput
| Field | Type | Required | Description |
|---|---|---|---|
annotation_comment_id | string | Required |
UserRef
| Field | Type | Required | Description |
|---|---|---|---|
display_name | string | Required | |
kind | string: user, system, integration or string | Required | |
user_id | string or null | Required |