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

Create a tag.

POST/api/v1/tagslookup_lists:write
注記

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

Needs Create Tags. A parent requires View Tags and current access. Additional access principals require Grant Tag Access and their directory readers. Successful writers without read access receive an ID acknowledgment.

スコープlookup_lists:write
非同期いいえ
MCP ツールcreate_tag
Portal の権限create_tags

パラメーター​

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

リクエスト本文​

Content-Type型
application/jsonTagCreateInput

応答​

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

スキーマ​

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.

TagCreateInput​

フィールド型必須説明
colorstring または null任意
descriptionstring または null任意
group_idsstring の配列任意Restrict the tag to these groups (with user_ids).
is_mutually_exclusiveboolean任意
is_tag_groupboolean任意
namestring必須
parent_tag_idstring または null任意
sort_orderinteger または null任意
user_idsstring の配列任意Restrict the tag to these users (with group_ids). None at all means open to everyone.