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

Add an annotation to a file version.

POST/api/v1/documents/{document_id}/annotationsannotations:write
注記

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

Adds an annotation to one file version of a document you can read; people viewing the file see it appear. Signature annotations are made by signing and cannot be created here.

スコープannotations:write
非同期いいえ
MCP ツールcreate_document_annotation

パラメーター​

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

リクエスト本文​

Content-Type型
application/jsonAnnotationCreateInput

応答​

ステータス説明本文
201Success.application/json Annotation または 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 のコードです。各コードからそのページに移動できます。

スキーマ​

AccessGrantInputInput​

フィールド型必須説明
permissionstring任意read or write; read when absent.
principalobject または object必須

Annotation​

フィールド型必須説明
annotationobject必須The details the viewer draws: format annotation_details, body a non-empty list of objects.
annotation_idstring必須
annotation_typestring必須
created_byUserRef必須
deleted_atstring (date-time) または null必須null while live; the time it was deleted otherwise (restore brings it back).
document_idstring必須
pageinteger必須1-based page of the file version. ≥ -2147483648; ≤ 2147483647
version_idstring必須The file version the annotation is drawn on (opaque, derived from document and stored file).

AnnotationCreateInput​

フィールド型必須説明
access_grantsAccessGrantInputInput の配列任意Who may see or change the annotation, saved with it (the viewer's security list). Absent or empty leaves it open to everyone who can read the document. Must include you or one of your groups.
annotationobject必須
annotation_typestring必須Rectangle, Cloud, Circle, Text, Textbox, Callout, Image, VectorStamp, Highlight, StrikeThrough, Redaction, Line or Arrow.
pageinteger必須1-based. ≥ -2147483648; ≤ 2147483647
version_idstring必須

UserRef​

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