Creates a label group in the organization’s catalog and returns its identifier.
https://api.doboard.com/{account_id}/label_group_add
account_id is the numeric organization identifier associated with the user session.
GET, POST.
For GET, send parameters in the query string. For POST, use application/x-www-form-urlencoded.
POST is recommended because the method creates a record.
Requires a valid user session_id. Guest sessions are not supported.
The method does not require administrator or project manager permissions.
Public task tokens, public project tokens and MCP tokens do not provide access to this method.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
session_id |
string | Yes | — | Authenticated session ID. |
name |
string | Yes | — | Group name. Truncated to the first 16 characters. |
color |
string | Yes | — | Exactly six hexadecimal characters without a leading #. Example: 0066FF. |
allow_multiple_labels |
flag | No | 0 |
Use 1 to allow multiple labels in the group to be selected together, or 0 for the standard group mode. |
name is rejected.color accepts digits 0–9 and letters a–f in either case.allow_multiple_labels accepts only integer 0 or 1, or their string equivalents "0" and "1".allow_multiple_labels value is rejected. Omit the parameter to use the default.ACTIVE.Create a group that allows multiple labels:
POST /42/label_group_add HTTP/1.1
Host: api.doboard.com
Content-Type: application/x-www-form-urlencoded
session_id=YOUR_SESSION_ID&name=Skills&color=0066FF&allow_multiple_labels=1
Equivalent cURL request:
curl --request POST 'https://api.doboard.com/42/label_group_add' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'session_id=YOUR_SESSION_ID' \
--data-urlencode 'name=Skills' \
--data-urlencode 'color=0066FF' \
--data-urlencode 'allow_multiple_labels=1'
Omit allow_multiple_labels, or send 0, to create a group in the standard mode.
All identifiers in examples are illustrative.
{
"data": {
"operation_status": "SUCCESS",
"group_id": "21"
}
}
| Field | Description |
|---|---|
data.operation_status |
SUCCESS when creation succeeds. |
data.group_id |
Identifier of the created group. Returned as a numeric string by the current implementation. |
The response does not contain the complete group object. Use label_group_get with the returned identifier to retrieve it.
| HTTP Code | error_no |
Message | Description |
|---|---|---|---|
401 |
401 |
session_id Unknown |
Missing or invalid session. |
403 |
403 |
Permission denied |
The authentication context is not permitted to call this method, including guest sessions. |
200 |
6601 |
name is required |
Group name is missing or empty. |
200 |
6602 |
color must be between 000000 and FFFFFF |
Color is not exactly six hexadecimal characters. |
200 |
6603 |
color is required |
Color is missing or empty. |
200 |
6604 |
allow_multiple_labels must be 0 or 1 |
Unsupported multiple-label flag. |
200 |
0 |
Internal API Error |
The group could not be created. |
Example validation response:
{
"data": {
"operation_status": "FAILED",
"operation_message": "allow_multiple_labels must be 0 or 1"
},
"error_message": "allow_multiple_labels must be 0 or 1",
"error_no": 6604
}
"0" as missing.