メインコンテンツまでスキップ

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

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

このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。

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.

スコープannotations:write
非同期いいえ
MCP ツールcreate_document_model_note
Portal の権限create_model_markups

パラメーター​

名前場所型必須説明
document_idpathstring必須
Docwize-Versionheaderstring (date)任意
Idempotency-Keyheaderstring任意max 255

リクエスト本文​

Content-Type型
application/jsonModelNoteCreateInput

応答​

ステータス説明本文
201Success.application/json ModelNote または 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

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

ModelNote​

フィールド型必須説明
can_editboolean必須Whether you made the note, so you may change or delete it.
created_atstring (date-time) または null必須
created_byUserRef必須
document_idstring必須
metadataobject必須Text values; the saved camera is the key model_viewer_camera_v1.
model_note_idstring必須
note_textstring必須
object_external_keystring または null必須The object's identifier in the model file (an IFC GlobalId, for one).
object_namestring または null必須
object_viewer_keystring または null必須The viewer's database key of the object the note is on.
positionModelNotePosition必須
source_file_hashstring必須The model revision the note was made on.
statusstring: open, in_progress, resolved または string必須
titlestring必須
updated_atstring (date-time) または null必須

ModelNoteCreateInput​

フィールド型必須説明
metadataobject任意Up to 20 text values; none when absent.
note_textstring または null任意Up to 10,000 characters; empty when absent.
object_external_keystring または null任意Up to 512 characters.
object_namestring または null任意Up to 512 characters.
object_viewer_keystring または null任意
positionModelNotePositionInput必須A point in model space.
statusstring: open, in_progress, resolved または null任意open when absent.
titlestring必須1 to 160 characters.

ModelNotePosition​

フィールド型必須説明
xnumber必須
ynumber必須
znumber必須

ModelNotePositionInput​

フィールド型必須説明
xnumber必須
ynumber必須
znumber必須

UserRef​

フィールド型必須説明
display_namestring必須
kindstring: user, system, integration または string必須
user_idstring または null必須