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_id | path | string | 必須 | |
Docwize-Version | header | string (date) | 任意 | |
Idempotency-Key | header | string | 任意 | max 255 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | ModelNoteCreateInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
201 | Success. | application/json ModelNote または 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 |
409 | idempotency_in_progress | 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 | idempotency_key_reused, 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 |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
ModelNote
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
can_edit | boolean | 必須 | Whether you made the note, so you may change or delete it. |
created_at | string (date-time) または null | 必須 | |
created_by | UserRef | 必須 | |
document_id | string | 必須 | |
metadata | object | 必須 | Text values; the saved camera is the key model_viewer_camera_v1. |
model_note_id | string | 必須 | |
note_text | string | 必須 | |
object_external_key | string または null | 必須 | The object's identifier in the model file (an IFC GlobalId, for one). |
object_name | string または null | 必須 | |
object_viewer_key | string または null | 必須 | The viewer's database key of the object the note is on. |
position | ModelNotePosition | 必須 | |
source_file_hash | string | 必須 | The model revision the note was made on. |
status | string: open, in_progress, resolved または string | 必須 | |
title | string | 必須 | |
updated_at | string (date-time) または null | 必須 |
ModelNoteCreateInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
metadata | object | 任意 | Up to 20 text values; none when absent. |
note_text | string または null | 任意 | Up to 10,000 characters; empty when absent. |
object_external_key | string または null | 任意 | Up to 512 characters. |
object_name | string または null | 任意 | Up to 512 characters. |
object_viewer_key | string または null | 任意 | |
position | ModelNotePositionInput | 必須 | A point in model space. |
status | string: open, in_progress, resolved または null | 任意 | open when absent. |
title | string | 必須 | 1 to 160 characters. |
ModelNotePosition
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
x | number | 必須 | |
y | number | 必須 | |
z | number | 必須 |
ModelNotePositionInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
x | number | 必須 | |
y | number | 必須 | |
z | number | 必須 |
UserRef
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
display_name | string | 必須 | |
kind | string: user, system, integration または string | 必須 | |
user_id | string または null | 必須 |