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.
| Scope | annotations:write |
| Asynchronous | No |
| MCP tool | update_annotation_comment |
| Portal permissions | edit_document_notes |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
annotation_id | path | string | Required | |
annotation_comment_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
If-Match | header | string | Optional |
Request body
| Content type | Type |
|---|---|
application/json | AnnotationCommentPatchInput |
application/merge-patch+json | AnnotationCommentPatchInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | 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 |
412 | precondition_failed | 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 | 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. |
AnnotationCommentPatchInput
| Field | Type | Required | Description |
|---|---|---|---|
annotation_comment_id | string or null | Optional | |
annotation_id | string or null | Optional | |
comment_json | string or null | Optional | null removes the rich-text form. |
comment_text | string or null | Optional | |
created_by | UserRefInput or null | Optional | |
created_date | string or null | Optional | |
reply_to | AnnotationCommentRefEchoInput or null | Optional |
AnnotationCommentRef
| Field | Type | Required | Description |
|---|---|---|---|
annotation_comment_id | string | Required |
AnnotationCommentRefEchoInput
| Field | Type | Required | Description |
|---|---|---|---|
annotation_comment_id | string or null | Optional |
UserRef
| Field | Type | Required | Description |
|---|---|---|---|
display_name | string | Required | |
kind | string: user, system, integration or string | Required | |
user_id | string or null | Required |
UserRefInput
| Field | Type | Required | Description |
|---|---|---|---|
display_name | string | Optional | |
kind | string: user, system, integration | Optional | |
user_id | string or null | Optional |