Skip to content
Kumquat
Esc
↑↓navigate↵open⌘Jpreview

Set Tag Label

Renames a tag, moving its slug with the label — the slug is derived from the label, so a rename also repoints every creative and variation block carrying the old one. The response carries the new slug; the tag keeps its id, status and usage.

409 on a label another tag already carries (the Tags field maps a picked label back to a slug, so two tags reading the same would make one unpickable) and on a label whose slug is another tag’s — two labels can differ and still derive one slug.

PATCH/api/v1/tags/{slug}/label
Authorization
AuthorizationBearer token · headerrequired
or
AuthorizationOAuth2 access token · headerrequired
Path parameters
slugstringrequired
min length 1 · max length 32
Request body
requiredapplication/json
labelstringrequired
min length 1 · max length 64
Responses
200Successful Response
successboolean
default: true
dataCreativeTagWithUsage | any
Show properties
Any of:
CreativeTagWithUsage
idstringrequired
slugstringrequired
labelstringrequired
statusTagStatusrequired
A creative tag's lifecycle. `PROPOSED` on first use (`Tags` field, coined free-form); an admin promotes it to `APPROVED` once it earns a place in the shared vocabulary, or retires it to `ARCHIVED`. The `slug` does not move across this — every creative that already carries it keeps carrying it, so promotion is a one-document status write. A *rename* is the one thing that does move it, because the slug is derived from the label; see `set_label`.
Allowed:proposedapprovedarchived
created_bystringrequired
created_atstring<date-time>required
updated_atstring<date-time>required
usage_countinteger
default: 0
any
any
messagestring | any
Show properties
Any of:
string
string
any
any
errorsstring[] | any
Show properties
Any of:
string[]
Array of string
string
any
any
422Validation Error
detailValidationError[]
Show properties
Array of ValidationError
locstring | integer[]required
Show properties
Array of string | integer
Any of:
string
string
integer
integer
msgstringrequired
typestringrequired
inputany
ctxobject
Request
curl -X PATCH "/api/v1/tags/string/label" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "label": "string"
}'
Response
{
  "success": true,
  "data": {
    "id": "string",
    "slug": "string",
    "label": "string",
    "status": "proposed",
    "created_by": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z",
    "usage_count": 0
  },
  "message": "string",
  "errors": [
    "string"
  ]
}