permissions
Delete permission
Changed onRemove a permission from your workspace. This also removes the permission from all API keys and roles.
Important: This operation cannot be undone and immediately affects all API keys and roles that had this permission assigned.
Required Permissions
Your root key must have the following permission:
- rbac.*.delete_permission
post/v2/permissions.deletePermission
Request
- Base URLhttps://api.unkey.com
- URLhttps://api.unkey.com/v2/permissions.deletePermission
- AuthHTTP bearer
Request body
Example request
{
"permission": "perm_1234567890abcdef"
}Response
Permission deleted successfully
Example response
{
"meta": {
"requestId": "req_123"
}
}Changes
- breaking
the
request property's maxLength was decreased to128 - warning
changed the pattern of the request property
from^[a-zA-Z][a-zA-Z0-9._-]*$to^[a-zA-Z0-9_:\-\.\*]+$ - info
the
request property's minLength was decreased from3to1
- breaking
- info
the endpoint scheme security
bearerwas added to the API - info
the endpoint scheme security
rootKeywas removed from the API
- info