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

Save a new version of a group's shared note.

POST/api/v1/documents/{document_id}/collaborative-notes/{group_id}/saveannotations:write
注記

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

Makes the note the group shares on the document when it has none, then saves note_json (the editor's state, a JSON text) and note_text (its plain text) as the newest version, as the Notepad's collaborative editor does. The first save fills the empty first version; later saves add one. Needs Create Collaborative Document Notes and Publish Collaborative Note Versions; you must be in the group and able to read the document. Answers the version now latest with View Document Notes, otherwise the write receipt.

スコープannotations:write
非同期いいえ
MCP ツールsave_document_collaborative_note
Portal の権限create_collaborative_document_notes, publish_collaborative_note_versions

パラメーター​

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

リクエスト本文​

Content-Type型
application/jsonCollaborativeNoteSaveInput

応答​

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

スキーマ​

CollaborativeNote​

フィールド型必須説明
document_idstring必須
group_idstring必須
note_idstring必須The shared note's own ID, the same for every version.
note_jsonstring必須The editor's state (Lexical JSON) as text.
note_textstring必須The note's plain text.
saved_atstring または null必須When this version was saved; null in the list, which does not read it.
saved_byUserRef または null必須Who saved this version; null in the list, which does not read it.
version_numberinteger または null必須0 for the empty first version; null in the list, which does not read it.

CollaborativeNoteSaveInput​

フィールド型必須説明
note_jsonstring必須The editor's state as a JSON text.
note_textstring必須The note's plain text.

UserRef​

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