/api/v1/object/field/tag/unit/{objectSlug}Add a tag from a record of one object.
Add a tag from a record of one object.
Works like POST /object/field/tag and takes the same body, but needs
write access to the object in the path instead of object.update. Use it
when your app adds a tag while it edits a record. The object slug only
decides the scope: the tag joins the workspace list and is available on
every object. Renaming, reordering and deleting tags still need
object.update.
Scope: update.<object slug>, for example update.contacts.
Errors:
409— a live tag already has this label. The error carriescode: TAG_ALREADY_EXISTSand the existing tag's slug indata.slug.422— the body is invalid, for example an emptylabel.
Request:
{
"label": "Follow up"
}
Response 201:
{
"status": 201,
"message": "Tag created successfully",
"data": {
"slug": "c4a7e1b9-2d3f-4a6b-8c5e-7f9a0b1c2d3e",
"label": "Follow up",
"value": "Follow up",
"color": "#8B5CF6",
"is_archived": false,
"usage_count": 0,
"units": []
}
}
Send request
Use the documented inputs to call this endpoint directly.
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