Changes a label group’s name, color, selection mode or status. The method can also add or remove the group from the current user’s favorites.
https://api.doboard.com/{account_id}/label_group_update
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 changes existing data.
Requires a valid user session_id. Guest sessions are not supported.
The method does not require administrator or project manager permissions.
Favorite changes apply to the current user. Moving a group to REMOVED clears that group from all users’ favorites.
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. |
group_id |
int | Yes | — | Existing label group identifier. |
name |
string | No | Unchanged | New name. Truncated to the first 16 characters. An empty string clears the name. |
color |
string | No | Unchanged | Exactly six hexadecimal characters without #. |
allow_multiple_labels |
flag | No | Unchanged | 1 for multiple-label selection, or 0 for the standard group mode. |
status |
enum | No | Unchanged | ACTIVE or REMOVED. |
favorite |
flag | No | Unchanged | Use 1 to add the group to the current user’s favorites or 0 to remove it. |
Supply at least one editable field or favorite.
status is ignored. A nonempty unsupported status is rejected.allow_multiple_labels accepts only integer 0 or 1, or their string equivalents "0" and "1". An empty value is rejected.0 or 1 explicitly.A group’s selection mode can be changed only when it has no task assignments.
6807.status=REMOVED in the same request does not bypass this restriction.allow_multiple_labels=1, configured hours values for labels belonging to the group are cleared.0 does not restore previously cleared values.The mode change does not remove labels from the group.
| Status | Behavior |
|---|---|
ACTIVE |
Makes the group active, including restoring a removed group. |
REMOVED |
Retains the group record but clears its label membership, task assignments and all users’ group favorites when transitioning from another status. |
Labels and tasks themselves are preserved. Direct label-to-task assignments outside the group are not removed by this cleanup.
Restoring a removed group does not recreate its previous membership, task assignments or favorites.
Removal cleanup runs only when the previous status differs from REMOVED.
POST /42/label_group_update HTTP/1.1
Host: api.doboard.com
Content-Type: application/x-www-form-urlencoded
session_id=YOUR_SESSION_ID&group_id=21&name=Skills&color=0066FF
The group must have no task assignments:
POST /42/label_group_update HTTP/1.1
Host: api.doboard.com
Content-Type: application/x-www-form-urlencoded
session_id=YOUR_SESSION_ID&group_id=21&allow_multiple_labels=1
POST /42/label_group_update HTTP/1.1
Host: api.doboard.com
Content-Type: application/x-www-form-urlencoded
session_id=YOUR_SESSION_ID&group_id=21&favorite=1
Use favorite=0 to remove it from the current user’s favorites.
POST /42/label_group_update HTTP/1.1
Host: api.doboard.com
Content-Type: application/x-www-form-urlencoded
session_id=YOUR_SESSION_ID&group_id=21&status=REMOVED
Use status=ACTIVE to restore the group record.
All identifiers in examples are illustrative.
{
"data": {
"operation_status": "SUCCESS",
"group_id": 21
}
}
| Field | Description |
|---|---|
data.operation_status |
SUCCESS when the requested operation completes. |
data.group_id |
Identifier of the updated group. |
The response does not contain the complete group object. Use label_group_get to retrieve its current values.
| 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 |
6801 |
group_id required |
Group ID is missing or empty. |
200 |
6802 |
Label group Not Found |
No group matches the supplied ID. |
200 |
6803 |
color must be between 000000 and FFFFFF |
Invalid color. |
200 |
6804 |
Empty input |
No editable group field or favorite flag was supplied. |
200 |
6805 |
status must be in ('ACTIVE','REMOVED') |
Unsupported nonempty status. |
200 |
6806 |
allow_multiple_labels must be 0 or 1 |
Invalid selection-mode flag. |
200 |
6807 |
Label group type cannot be changed after assignment to tasks |
A mode change was requested for a group with task assignments. |
200 |
0 |
Internal API Error |
The group could not be updated. |
Example validation response:
{
"data": {
"operation_status": "FAILED",
"operation_message": "Label group type cannot be changed after assignment to tasks"
},
"error_message": "Label group type cannot be changed after assignment to tasks",
"error_no": 6807
}
UPDATE event with object type label_groups.REMOVED, cleanup takes precedence over a favorite addition in the same request.