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

Put a tag on a document.

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

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

Needs Assign Document Tags, View Tags, and current document/tag access. A tag already on the document is 409 already_exists.

スコープdocuments:write
非同期いいえ
MCP ツールcreate_document_tag
Portal の権限assign_document_tags, view_tags

パラメーター​

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

リクエスト本文​

Content-Type型
application/jsonDocumentTagCreateInput

応答​

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

スキーマ​

DocumentTagCreateInput​

フィールド型必須説明
tag_idstring必須The tag to put on the document, from GET /tags.

Tag​

フィールド型必須説明
colorstring または null必須
created_atstring (date-time) または null必須
descriptionstring または null必須
group_idsstring の配列 または null必須The groups the tag is restricted to; none means open to all.
is_deletedboolean必須true for a disabled tag: it leaves everyone's Tags tab and cannot be put on documents.
is_mutually_exclusiveboolean必須Whether a document can carry only one of the tag's children.
is_tag_groupboolean必須Whether the tag only groups other tags.
namestring必須
parent_tag_idstring または null必須
sort_orderinteger または null必須
tag_idstring必須
updated_atstring (date-time) または null必須
user_idsstring の配列 または null必須The users the tag is restricted to; none means open to all.