change a member's role (ownership transfer is promoting another member to `owner`). Owner-managed; the last owner cannot be demoted.
PATCH
End-user session operationId: change_member_role/v1/dashboard/team/{member_id} Authorization
Called from the browser with the publishable application id (x-application-id); the access token lives in memory.
Path parameters
member_idstring<uuid> requiredMember id
Request body · required
rolestring required
Responses
200 Role changed
{
"data": [
{
"account_id": "018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f",
"created_at": "2026-01-15T09:30:00Z",
"email": "string",
"id": "018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f",
"last_active_at": "2026-01-15T09:30:00Z",
"name": "string",
"role": "string"
}
],
"error": {
"code": "string",
"message": "string"
},
"meta": {
"timestamp": "string"
},
"success": false
} 403 Insufficient role
422 Cannot demote the last owner
Request
curl -X PATCH "http://localhost:8080/v1/dashboard/team/018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f" \
-H "Content-Type: application/json" \
-d '{
"role": "string"
}'Try it
live requestPATCH
http://localhost:8080/v1/dashboard/team/018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f