Skip to main content

Remove a Permission from a User

Remove a permission from a user.

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/users/:userId/permissions/:permissionId

Parameters

ParameterDescriptionTypeRequired
userIdThe userId of the user 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/users/j7234nd09sd/permissions/create-report" \
-X DELETE \
-H "Authorization: ApiKey YOUR_KEY"

Response

200 OK