permissions
Delete role
Changed onRemove a role from your workspace. This also removes the role from all assigned API keys.
Important: This operation cannot be undone and immediately affects all API keys that had this role assigned.
Required Permissions
Your root key must have the following permission:
- rbac.*.delete_role
post/v2/permissions.deleteRole
Request
- Base URLhttps://api.unkey.com
- URLhttps://api.unkey.com/v2/permissions.deleteRole
- AuthHTTP bearer
Request body
Example request
{
"role": "role_dns_manager"
}Response
Role deleted successfully
Example response
{
"meta": {
"requestId": "req_123"
}
}Changes
- info
added the non-success response with the status
- info
- breaking
the
request property's maxLength was decreased to128 - info
the
request property's minLength was decreased from3to1 - info
removed the pattern
^[a-zA-Z0-9_:\-\.\*]+$from the request property
- breaking