Changes an existing label’s name, color or status. The method can also add or remove the label from the current user’s favorites.
https://api.doboard.com/{account_id}/label_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 only to the authenticated user, except when a label is moved to REMOVED, which clears that label 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. |
label_id |
int | Yes | — | Existing label 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 #. Example: 0066FF. |
status |
enum | No | Unchanged | ACTIVE, REMOVED or ARCHIVED. |
favorite |
flag | No | Unchanged | Use 1 to add the label to the current user’s favorites or 0 to remove it. |
Supply at least one editable field or favorite.
label_add, this method accepts an empty name.status is ignored. A nonempty unsupported status is rejected.For favorites, send 1 or 0. The implementation treats empty values as removal and other nonempty values as addition; it does not strictly validate the flag against those two values.
| Status | Behavior |
|---|---|
ACTIVE |
Makes the label active, including restoring an archived or removed label. |
ARCHIVED |
Archives the label while preserving existing task assignments and favorites. |
REMOVED |
Retains the label record, but clears direct task assignments and all users’ favorites when transitioning from another status. |
Restoring a removed label does not recreate the task assignments or favorites cleared during removal.
Moving a label to REMOVED through this method does not clear its comment labels or group membership.
The removal cleanup runs only when the label’s previous status differs from REMOVED.
POST /42/label_update HTTP/1.1
Host: api.doboard.com
Content-Type: application/x-www-form-urlencoded
session_id=YOUR_SESSION_ID&label_id=301&name=Defect&color=FF6600
POST /42/label_update HTTP/1.1
Host: api.doboard.com
Content-Type: application/x-www-form-urlencoded
session_id=YOUR_SESSION_ID&label_id=301&favorite=1
Use favorite=0 to remove it from the current user’s favorites.
POST /42/label_update HTTP/1.1
Host: api.doboard.com
Content-Type: application/x-www-form-urlencoded
session_id=YOUR_SESSION_ID&label_id=301&status=ARCHIVED
Use status=ACTIVE to restore the label, or status=REMOVED to remove it and clear the associations described above.
All identifiers in examples are illustrative.
{
"data": {
"operation_status": "SUCCESS",
"label_id": 301
}
}
| Field | Description |
|---|---|
data.operation_status |
SUCCESS when the requested operation completes. |
data.label_id |
Identifier of the updated label. |
The response does not contain the complete label object. Use label_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 |
2901 |
label_id is required |
Label ID is missing or empty. |
200 |
2902 |
Label Not Found |
No label matches the supplied ID. |
200 |
2903 |
color must be between 000000 and FFFFFF |
Color is not exactly six hexadecimal characters. |
200 |
2904 |
Empty input |
No editable label field or favorite flag was supplied. |
200 |
2905 |
status must be in ('ACTIVE','REMOVED','ARCHIVED') |
A nonempty unsupported status was supplied. |
200 |
0 |
Internal API Error |
The label could not be updated. |
Example validation response:
{
"data": {
"operation_status": "FAILED",
"operation_message": "color must be between 000000 and FFFFFF"
},
"error_message": "color must be between 000000 and FFFFFF",
"error_no": 2903
}
UPDATE event for the label.REMOVED, removal cleanup takes precedence over a favorite addition in the same request.