Skip to main content

Update a tag.

PATCH/api/v1/tags/{tag_id}lookup_lists:write

Needs Edit Tags and each changed field's action permission. Reparenting needs Move Tags and Edit Tag Hierarchy; sort changes need Reorder Tags. Actual access additions/removals need Grant/Revoke Tag Access. Omitted fields and unchanged references are preserved. A rename queues reindexing.

Scopelookup_lists:write
AsynchronousNo
MCP toolupdate_tag
Portal permissionsedit_tags

Parameters​

NameInTypeRequiredDescription
tag_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Request body​

Content typeType
application/jsonTagPatchInput
application/merge-patch+jsonTagPatchInput

Responses​

StatusDescriptionBody
200Success.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
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409conflictapplication/problem+json Problem
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_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.

TagPatchInput​

FieldTypeRequiredDescription
colorstring or nullOptional
created_atstring (date-time) or nullOptional
descriptionstring or nullOptional
group_idsarray of string or nullOptional
is_deletedboolean or nullOptional
is_mutually_exclusiveboolean or nullOptional
is_tag_groupboolean or nullOptional
namestring or nullOptional
parent_tag_idstring or nullOptional
sort_orderinteger or nullOptional
tag_idstring or nullOptional
updated_atstring (date-time) or nullOptional
user_idsarray of string or nullOptional