Changes an existing team role’s name, color or type.
https://api.doboard.com/{account_id}/role_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.
Only ADMIN and PROJECT_MANAGER users can update team roles. Guest sessions are not supported.
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. |
role_id |
int | Yes | — | Existing role identifier. |
name |
string | No | Unchanged | New nonempty name. Truncated to the first 255 characters. |
color |
string | No | Unchanged | Six hexadecimal characters without a leading #. Example: 0066FF. |
role_type |
enum | No | Unchanged | PERMANENT or TEMPORARY. |
Supply at least one nonempty editable field: name, color or role_type.
"0" is also treated as empty.Unlike role_add, omitting or sending an empty role_type does not select PERMANENT; it preserves the existing type.
POST /42/role_update HTTP/1.1
Host: api.doboard.com
Content-Type: application/x-www-form-urlencoded
session_id=YOUR_SESSION_ID&role_id=3&name=Customer+support&color=FF6600
POST /42/role_update HTTP/1.1
Host: api.doboard.com
Content-Type: application/x-www-form-urlencoded
session_id=YOUR_SESSION_ID&role_id=3&role_type=TEMPORARY
Equivalent cURL request:
curl --request POST 'https://api.doboard.com/42/role_update' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'session_id=YOUR_SESSION_ID' \
--data-urlencode 'role_id=3' \
--data-urlencode 'name=Customer support' \
--data-urlencode 'color=FF6600'
All identifiers in examples are illustrative.
{
"data": {
"operation_status": "SUCCESS",
"role_id": 3
}
}
| Field | Description |
|---|---|
data.operation_status |
SUCCESS when the update completes. |
data.role_id |
Integer identifier of the updated role. |
The response does not contain the complete role object. Use role_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 user is not permitted to update roles. |
200 |
4001 |
Role Not Found |
No role matches the supplied ID. |
200 |
4002 |
role_id is required |
Role ID is missing or empty. |
200 |
4003 |
color must be between 000000 and FFFFFF |
A nonempty color is not exactly six hexadecimal characters. |
200 |
4003 |
role_type must be in ('PERMANENT','TEMPORARY') |
Unsupported nonempty role type. |
200 |
0 |
Internal API Error |
The role could not be updated. |
Both color and role-type validation errors use 4003; inspect the message to distinguish them.
Example validation response:
{
"data": {
"operation_status": "FAILED",
"operation_message": "role_type must be in ('PERMANENT','TEMPORARY')"
},
"error_message": "role_type must be in ('PERMANENT','TEMPORARY')",
"error_no": 4003
}
users_count.TEMPORARY does not set an expiration date.