Labels
Permanently deletes a label by its ID.
Requires 'Delete labels' permission.
Deleting a label does not affect any existing data structures or links that reference it; only the label record is removed.
Label ID
Label deleted
No content
Unauthorized
Forbidden
Not found
Internal Server Error
DELETE /api/labels/{id} HTTP/1.1
Accept: */*
No content
Permanently deletes a label by its name.
Requires the 'Delete labels' permission.
Deleting a label does not affect any existing data structures or links that reference it; only the label record is removed.
Label deleted
No content
Unauthorized
Forbidden
Not found
Internal Server Error
DELETE /api/labels/search_delete_one HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 24
{
"name": "example_label"
}No content
Returns a list of all labels available in the system. The list is not filtered by domain or structure; all global labels are returned.
Requires the 'View labels' permission.
No pagination is applied; the full list of labels is returned in a single response.
List labels
Unauthorized
Forbidden
Internal Server Error
GET /api/labels HTTP/1.1
Accept: */*
{
"data": [
{
"data": {
"id": 1,
"name": "example_label"
}
},
{
"data": {
"id": 2,
"name": "another_label"
}
}
]
}Creates a new label with the given name.
The name of the label must be unique, if a label with the same name already exists, the endpoint returns an error.
Requires the 'Create labels' permission.
Label created
Unauthorized
Forbidden
Unprocessable Entity
Internal Server Error
POST /api/labels HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 24
{
"name": "example_label"
}{
"data": {
"id": 1,
"name": "example_label"
}
}Last updated