Create a label
Label to be created
- Type: stringcolorrequired
Color of this label
- Type: stringnamerequired
Name of this label
- Type: stringmodule
Name of the module this label can be attached to. When set, the label can only be attached to records of this module. Leave empty to allow any module (subject to per-space restrictions in
spaces). - Type: objectspaces
Spaces this label is assigned to, and the optional per-space module restriction. Keys are space IDs; each value is an array of module names (in dash syntax) the label may be attached to within that space, or an empty array / null to allow all modules in that space. An empty
spacesobject makes the label global - visible to every space and every user. - Type: stringtype
Scope of this label. SHARED labels are visible to all users with access to the assigned spaces; a SHARED label with no spaces is global and visible to everyone.
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
curl https://test.boost.space/api/label \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"id": 42,
"created": "2026-01-15T09:30:00Z",
"createdUserId": 42,
"updated": "2026-01-15T09:30:00Z",
"updatedUserId": 42,
"spaces": {
"12": [
"contact",
"todo"
],
"34": []
},
"name": "Sample name",
"color": "#1f6feb",
"type": "string",
"module": "string",
"editable": true
}'
{
"id": 42,
"created": "2026-01-15T09:30:00Z",
"createdUserId": 42,
"updated": "2026-01-15T09:30:00Z",
"updatedUserId": 42,
"spaces": {
"12": [
"contact",
"todo"
],
"34": []
},
"name": "Sample name",
"color": "#1f6feb",
"type": "string",
"module": "string",
"editable": true
}