Remove a user from a role within an organization. The last owner of an organization cannot be removed from the Owner role.
DELETEhttps://api.aitronos.com/v1/organizations/{organization_id}/roles/{role_id}/members/{user_id}
organization_id string required
Organization ID (org_ prefixed string).
role_id string required
Role ID (role_ prefixed string).
user_id string required
User ID to remove from the role (usr_ prefixed string).
No content (204) on success.
cURL
- Bash
- Python
- Python
- JavaScript
curl -X DELETE "https://api.aitronos.com/v1/organizations/org_abc123/roles/role_xyz789/members/usr_target456" \
-H "Authorization: Bearer $ACCESS_TOKEN"