/api/v1/object/field/tag/{tagSlug}Delete a tag, or retire it when records still hold it.
Delete a tag, or retire it when records still hold it.
A tag that no record holds is removed. A tag that records still hold is
retired instead: those records keep showing it, but it leaves the default
tag list. data.archived tells you which happened. There is no option to
force the removal of a tag in use.
Scope: object.update.
Errors:
404— no tag has that slug.
Response 200:
{
"status": 200,
"message": "Tag is still in use and was retired instead of deleted",
"data": { "archived": true }
}
Send request
Use the documented inputs to call this endpoint directly.
Parameters
Values are applied to the request and the example on the right.
Responses
Successful response
{
"message": "string",
"data": "string"
}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