v1Resources/Data/patchRename an asset tag

Rename an asset tag

Renames a tag. If another tag already has the target name, the two are merged: every asset tagged with either ends up tagged with the surviving name.

patch/api/v1/tags/{id}
media:write
Query parameters
idstringrequired
The tag to rename.
Request body
namestringrequired
The tag's new name. Required.
Response
dataobjectoptional
idstringoptional
Unique identifier for the newly created tag.
namestringoptional
The tag's name.
countnumberoptional
The number of assets now carrying this tag.
Errors
400The request is missing a required parameter or is otherwise malformed.
401Missing, invalid, expired, or revoked API key.
403The key lacks the required scope, or isn't authorized for this client/location.
404The resource wasn't found, or doesn't belong to your agency.
429Too many requests. Retry after the number of seconds in the Retry-After header.
patch/api/v1/tags/{id}
Your API key
id *
Request body*
{
  "data": {
    "id": "tag_1",
    "name": "VIP Clients",
    "count": 12
  }
}