Skip to main content

Remove a Permission from a Role

Remove a permission from a role.

caution

This endpoint has been deprecated and will be phased out at the end of 2023. Please update any existing usages of it to use the Delete Warrant endpoint instead.

Endpoint

DELETE /v1/roles/:roleId/permissions/:permissionId

Parameters

ParameterDescriptionTypeRequired
roleIdThe roleId of the role you want to remove a permission from.URL paramyes
permissionIdThe permissionId of the permission you want to remove from a role.URL paramyes

Request

curl "https://api.warrant.dev/v1/roles/admin/permissions/create-report" \
-X DELETE \
-H "Authorization: ApiKey YOUR_KEY"

Response

200 OK