Delete a custom Role
Requires ac:delete, and organization:delete for a Role that grants it. Deletes the Role’s Grants, Memberships and pending invitations; members holding no other Role leave the organization. Built-in Roles cannot be deleted (409).
DELETE
/organizations/{organizationId}/roles/{roleId}Authorization
AuthorizationBearer token (JWT) · headerrequiredAn access token issued by this service (RFC 9068), in the Authorization header as Bearer <token>.
Path parameters
organizationIdstring<uuid>requiredroleIdstring<uuid>requiredResponses
204
The Role is deleted.
default
The request failed.
errorstringrequiredStable machine-readable code.
Allowed:
invalid_requestunauthorizedforbiddennot_foundconflictgoneunavailableinternalmessagestringrequiredHuman-readable explanation.