Skip to content

Delete Labels

POST
/v0/labels/delete
curl -s -X POST "https://api.yoagent.dev/v0/labels/delete" \
-H "Authorization: Bearer $YOAGENT_KEY" \
-H "Content-Type: application/json" \
-d '{"label_ids":["lbl_01je56wqswfmn9pgbc1wq8tjgq"]}'

Delete labels (up to 200), all of them or none: they come off every message and thread of their projects.

Media typeapplication/json
LabelsDelete

Delete labels: they come off every message and thread of their projects. All of them or none.

object
label_ids
required
Label Ids

The labels to delete.

Array<string>
>= 1 items <= 200 items

Successful Response

Media typeapplication/json
LabelsDeleted

Labels were deleted.

object
deleted
required
Deleted
Array<string>

Example

{
"deleted": [
"lbl_01je56wqswfmn9pgbc1wq8tjgq"
]
}

An error (400, 401, 403, 404, 405, 409, 413, 429, 500, 503), in the one shape every call answers: Errors.