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

Restore a deleted annotation.

POST/api/v1/annotations/{annotation_id}/restoreannotations:write
注記

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

Brings a soft-deleted annotation back with its ID, optionally with new details.

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

パラメーター​

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

リクエスト本文​

Content-Type型
application/jsonAnnotationRestoreInput

応答​

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

スキーマ​

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

AnnotationRestoreInput​

フィールド型必須説明
annotationobject または null任意Details to restore the annotation with; the stored details are kept when absent.

UserRef​

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