Delete a custom role
View request and response examples ↓
Soft-deletes a custom role in the authenticated organization. Requires an API Key with the OrganizationAdmin role and a RequestId header.
A custom role cannot be deleted while it is assigned to an organization user or a non-deleted API Key, or while it is configured as the SAML default role. Deleting a built-in role returns 400 InvalidParameter.
Authorization
API key for /v1 requests.
Path parameters
Headers
Idempotency key for write requests.
Use a globally unique UUID or similar token for each logical write request.
Never reuse a RequestId across different operations or payloads.
You can safely retry the same RequestId only when the method, path, path parameters, query string, and request body are identical.
Minimum length
1Example
8f6b0c2e-6a9a-4f2e-9c4c-0a1f9a2b7d31Response
Custom role deleted successfully.