Permanently deletes an existing team role.
https://api.doboard.com/{account_id}/role_delete
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 deletes data.
Requires a valid user session_id.
Only ADMIN and PROJECT_MANAGER users can delete 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 | — | Identifier of the role to delete. |
role_id must identify an existing role. An omitted, empty or zero value returns role_id is required.
POST /42/role_delete HTTP/1.1
Host: api.doboard.com
Content-Type: application/x-www-form-urlencoded
session_id=YOUR_SESSION_ID&role_id=3
curl --request POST \
'https://api.doboard.com/42/role_delete' \
--data-urlencode 'session_id=YOUR_SESSION_ID' \
--data-urlencode 'role_id=3'
A successful request returns HTTP 200:
{
"data": {
"operation_status": "SUCCESS",
"role_id": 3
}
}
| Field | Type | Description |
|---|---|---|
data.operation_status |
string | SUCCESS when the role is deleted. |
data.role_id |
int | Identifier of the deleted role. |
| HTTP status | error_no |
Message | Description |
|---|---|---|---|
401 |
401 |
session_id Unknown |
The session is missing, invalid or expired. |
403 |
403 |
Permission denied |
The user cannot delete team roles. |
200 |
3901 |
Role Not Found |
No role exists with the supplied identifier. |
200 |
3902 |
role_id is required |
The identifier is missing, empty or zero. |
200 |
0 |
Internal API Error |
The delete operation failed. |
Example for a nonexistent role:
{
"data": {
"operation_status": "FAILED",
"operation_message": "Role Not Found"
},
"error_message": "Role Not Found",
"error_no": 3901
}
Validation errors return HTTP 200. Check data.operation_status and error_no to determine whether the operation succeeded.
PERMANENT and TEMPORARY roles can be deleted.Role Not Found with error_no: 3901.