Skip to content

updateContentTag

PATCH
/api/v1/content-tags/{id}
curl --request PATCH \
--url https://example.com/api/v1/content-tags/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "color": "example" }'

Rename or recolor a content tag. Requires a content author with the write scope. Cookie-authenticated unsafe requests require X-CSRF-Token.

id
required
string format: uuid
X-CSRF-Token
string

Cookie-backed browser requests only, and only on unsafe methods. Bearer grants never send it.

Media typeapplication/json
object
name
string
color
string
Examplegenerated
{
"name": "example",
"color": "example"
}

Content tag updated

Media typeapplication/json
object
data
required
object
id
required
string format: uuid
name
required
string
color
required
string
assetCount
integer
assignable

On the tag list, whether the caller may apply or remove this tag.

boolean
Examplegenerated
{
"data": {
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"color": "example",
"assetCount": 1,
"assignable": true
}
}

Invalid request body

Dashboard authentication required

Insufficient role