Change a model note (JSON Merge Patch).
PATCH/api/v1/documents/{document_id}/model-notes/{model_note_id}annotations:write
Changes the title, note_text, status or metadata of a note; its position and object stay. Needs Edit Model Markups, and only the person who made the note may change it (403).
| Scope | annotations:write |
| Asynchronous | No |
| MCP tool | update_document_model_note |
| Portal permissions | edit_model_markups |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
document_id | path | string | Required | |
model_note_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
If-Match | header | string | Optional |
Request body
| Content type | Type |
|---|---|
application/json | ModelNotePatchInput |
application/merge-patch+json | ModelNotePatchInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json ModelNote 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
ModelNote
| Field | Type | Required | Description |
|---|---|---|---|
can_edit | boolean | Required | Whether you made the note, so you may change or delete it. |
created_at | string (date-time) or null | Required | |
created_by | UserRef | Required | |
document_id | string | Required | |
metadata | object | Required | Text values; the saved camera is the key model_viewer_camera_v1. |
model_note_id | string | Required | |
note_text | string | Required | |
object_external_key | string or null | Required | The object's identifier in the model file (an IFC GlobalId, for one). |
object_name | string or null | Required | |
object_viewer_key | string or null | Required | The viewer's database key of the object the note is on. |
position | ModelNotePosition | Required | |
source_file_hash | string | Required | The model revision the note was made on. |
status | string: open, in_progress, resolved or string | Required | |
title | string | Required | |
updated_at | string (date-time) or null | Required |
ModelNotePatchInput
| Field | Type | Required | Description |
|---|---|---|---|
can_edit | boolean or null | Optional | |
created_at | string (date-time) or null | Optional | |
created_by | UserRefInput or null | Optional | |
document_id | string or null | Optional | |
metadata | object or null | Optional | Replaces the metadata: up to 20 text values. |
model_note_id | string or null | Optional | |
note_text | string or null | Optional | |
object_external_key | string or null | Optional | |
object_name | string or null | Optional | |
object_viewer_key | string or null | Optional | |
position | object or null | Optional | |
source_file_hash | string or null | Optional | |
status | string: open, in_progress, resolved or null | Optional | |
title | string or null | Optional | |
updated_at | string (date-time) or null | Optional |
ModelNotePosition
| Field | Type | Required | Description |
|---|---|---|---|
x | number | Required | |
y | number | Required | |
z | number | Required |
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 |