Assign role
operationId: assignStaffRole
Assigns an RBAC role to a staff member by role name.
Headers
Body
Response — 200 OK
Remove role
operationId: removeStaffRole
Removes an RBAC role assignment from a staff member.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
POST /v1/firm-control/staff/roles/.
POST /v1/firm-control/staff/roles/assign
operationId: assignStaffRole
Assigns an RBAC role to a staff member by role name.
| Header | Notes |
|---|---|
X-Firm-Entity-Slug | RBAC entity slug for the firm. |
| Field | Required | Notes |
|---|---|---|
user_id | yes | User UUID of the staff member. |
role_name | yes | Name of the role to assign. |
curl -X POST "$TRADARA_BASE_URL/v1/firm-control/staff/roles/assign" \
-H "X-Tradara-Api-Key: $TRADARA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"user_id": "8e9ad12c-2b1c-4e9a-9d3b-5e6c7a0d1f23",
"role_name": "risk_operator"
}'
200 OK{ "status": "ok" }
POST /v1/firm-control/staff/roles/remove
operationId: removeStaffRole
Removes an RBAC role assignment from a staff member.
| Field | Required | Notes |
|---|---|---|
user_id | yes | User UUID. |
role_id | yes | UUID of the role assignment to remove. |
curl -X POST "$TRADARA_BASE_URL/v1/firm-control/staff/roles/remove" \
-H "X-Tradara-Api-Key: $TRADARA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"user_id": "8e9ad12c-2b1c-4e9a-9d3b-5e6c7a0d1f23",
"role_id": "rol_01HW..."
}'
200 OK{ "status": "ok" }
