/api/v1/object/field/tag/{tagSlug}Rename or recolor a tag.
Rename or recolor a tag.
Send any of label, color and icon; fields you omit keep their value.
The tag's slug and value never change, so records that hold the tag
keep it and show the new label. This response does not count usage:
usage_count is 0 and units is empty. Read
GET /object/field/tag/{tagSlug}/usage for the real numbers.
Scope: object.update.
Errors:
400— another tag already has this label (code: DUPLICATE_OPTION_LABEL).404— no tag has that slug.422— the body is invalid, for example acolorthat is not a hex color, or a property other thanlabel,colorandicon.
Request:
{
"label": "Key account",
"color": "#EC4899"
}
Response 200:
{
"status": 200,
"message": "Tag updated successfully",
"data": {
"slug": "3f1c9a2e-7b4d-4e0a-9c61-2d8f5b0e41a7",
"label": "Key account",
"value": "VIP",
"color": "#EC4899",
"is_archived": false,
"usage_count": 0,
"units": []
}
}
Send request
Use the documented inputs to call this endpoint directly.
Parameters
Values are applied to the request and the example on the right.
Request body
application/jsonrequiredResponses
Successful response
{
"slug": "string",
"label": "string",
"value": "string",
"color": "string",
"icon": "string",
"is_archived": true,
"usage_count": 1.5,
"units": "string"
}A retired tag: still rendered on records that hold it, never pickable.
Live records holding this tag across every Unit.
Bad request
{
"status": 1,
"message": "string",
"code": "string",
"data": {}
}The HTTP status code of the response.
What went wrong. Several validation messages are joined with ", ".
A stable, machine-readable reason. Only some errors set it.
Extra detail about the error. Only some errors set it.
Unauthorized
{
"status": 1,
"message": "string",
"code": "string",
"data": {}
}The HTTP status code of the response.
What went wrong. Several validation messages are joined with ", ".
A stable, machine-readable reason. Only some errors set it.
Extra detail about the error. Only some errors set it.
Internal server error
{
"status": 1,
"message": "string",
"code": "string",
"data": {}
}The HTTP status code of the response.
What went wrong. Several validation messages are joined with ", ".
A stable, machine-readable reason. Only some errors set it.
Extra detail about the error. Only some errors set it.
Powered by heyo-docs