POST
/
v1
/
permissions.deleteRole
curl --request POST \
  --url https://api.unkey.dev/v1/permissions.deleteRole \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "roleId": "role_123"
}'
{}

To use this endpoint, your root key must have the rbac.*.delete_role permission.

Changelog

DateChanges
Jul 08 2024Introduced endpoint

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
roleId
string
required

The id of the role you want to delete.

Response

200 - application/json

The response is of type object.