Skip to main content

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).

Scopeannotations:write
AsynchronousNo
MCP toolupdate_document_model_note
Portal permissionsedit_model_markups

Parameters​

NameInTypeRequiredDescription
document_idpathstringRequired
model_note_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Request body​

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

Responses​

StatusDescriptionBody
200Success.application/json ModelNote 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​

ModelNote​

FieldTypeRequiredDescription
can_editbooleanRequiredWhether you made the note, so you may change or delete it.
created_atstring (date-time) or nullRequired
created_byUserRefRequired
document_idstringRequired
metadataobjectRequiredText values; the saved camera is the key model_viewer_camera_v1.
model_note_idstringRequired
note_textstringRequired
object_external_keystring or nullRequiredThe object's identifier in the model file (an IFC GlobalId, for one).
object_namestring or nullRequired
object_viewer_keystring or nullRequiredThe viewer's database key of the object the note is on.
positionModelNotePositionRequired
source_file_hashstringRequiredThe model revision the note was made on.
statusstring: open, in_progress, resolved or stringRequired
titlestringRequired
updated_atstring (date-time) or nullRequired

ModelNotePatchInput​

FieldTypeRequiredDescription
can_editboolean or nullOptional
created_atstring (date-time) or nullOptional
created_byUserRefInput or nullOptional
document_idstring or nullOptional
metadataobject or nullOptionalReplaces the metadata: up to 20 text values.
model_note_idstring or nullOptional
note_textstring or nullOptional
object_external_keystring or nullOptional
object_namestring or nullOptional
object_viewer_keystring or nullOptional
positionobject or nullOptional
source_file_hashstring or nullOptional
statusstring: open, in_progress, resolved or nullOptional
titlestring or nullOptional
updated_atstring (date-time) or nullOptional

ModelNotePosition​

FieldTypeRequiredDescription
xnumberRequired
ynumberRequired
znumberRequired

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