Skip to main content

Create a tag.

POST/api/v1/tagslookup_lists:write

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.

Scopelookup_lists:write
AsynchronousNo
MCP toolcreate_tag
Portal permissionscreate_tags

Parameters​

NameInTypeRequiredDescription
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Request body​

Content typeType
application/jsonTagCreateInput

Responses​

StatusDescriptionBody
201Success.application/json Tag or 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

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

Tag​

FieldTypeRequiredDescription
colorstring or nullRequired
created_atstring (date-time) or nullRequired
descriptionstring or nullRequired
group_idsarray of string or nullRequiredThe groups the tag is restricted to; none means open to all.
is_deletedbooleanRequiredtrue for a disabled tag: it leaves everyone's Tags tab and cannot be put on documents.
is_mutually_exclusivebooleanRequiredWhether a document can carry only one of the tag's children.
is_tag_groupbooleanRequiredWhether the tag only groups other tags.
namestringRequired
parent_tag_idstring or nullRequired
sort_orderinteger or nullRequired
tag_idstringRequired
updated_atstring (date-time) or nullRequired
user_idsarray of string or nullRequiredThe users the tag is restricted to; none means open to all.

TagCreateInput​

FieldTypeRequiredDescription
colorstring or nullOptional
descriptionstring or nullOptional
group_idsarray of stringOptionalRestrict the tag to these groups (with user_ids).
is_mutually_exclusivebooleanOptional
is_tag_groupbooleanOptional
namestringRequired
parent_tag_idstring or nullOptional
sort_orderinteger or nullOptional
user_idsarray of stringOptionalRestrict the tag to these users (with group_ids). None at all means open to everyone.