Add label
Adds the specified label to the task.
Parameters
label
string
ID of the label.
Returns
Returns the added label object. Throws an error if some parameters are not valid.
post
/api/tasks/{id}/labels
curl -X POST https://{workspace}.kitchen.co/api/tasks/{id}/labels \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'X-Requested-With: XMLHttpRequest' \
-H 'Authorization: Bearer {API_KEY}'
Response
{
"label": "lbl_5b521cf4562a5ba739fc72a8",
"color": "#f9d0d9",
"title": null,
"createdAt": "2025-06-16T11:25:31+00:00",
"updatedAt": "2025-06-16T11:25:31+00:00"
}