Skip to main content

Add a model note to a document's 3D model.

POST/api/v1/documents/{document_id}/model-notesannotations:write

Leaves a note at position (x, y, z in model space), optionally on an object (object_viewer_key, object_external_key, object_name), with a title, text, status (open, in_progress or resolved) and metadata (up to 20 text values; a saved camera goes under model_viewer_camera_v1, up to 8192 characters). The note belongs to the model revision it is made on. Needs Create Model Markups and read access to a model document; open viewers are told. The note is shown with View Model Markups, otherwise the answer is the write receipt.

Scopeannotations:write
AsynchronousNo
MCP toolcreate_document_model_note
Portal permissionscreate_model_markups

Parameters​

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

Request body​

Content typeType
application/jsonModelNoteCreateInput

Responses​

StatusDescriptionBody
201Success.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
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​

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

ModelNoteCreateInput​

FieldTypeRequiredDescription
metadataobjectOptionalUp to 20 text values; none when absent.
note_textstring or nullOptionalUp to 10,000 characters; empty when absent.
object_external_keystring or nullOptionalUp to 512 characters.
object_namestring or nullOptionalUp to 512 characters.
object_viewer_keystring or nullOptional
positionModelNotePositionInputRequiredA point in model space.
statusstring: open, in_progress, resolved or nullOptionalopen when absent.
titlestringRequired1 to 160 characters.

ModelNotePosition​

FieldTypeRequiredDescription
xnumberRequired
ynumberRequired
znumberRequired

ModelNotePositionInput​

FieldTypeRequiredDescription
xnumberRequired
ynumberRequired
znumberRequired

UserRef​

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