Skip to main content

Remove a Role from a User

Remove a role 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/roles/:roleId

Parameters

ParameterDescriptionTypeRequired
userIdThe userId of the user you want to remove a role from.URL paramyes
roleIdThe roleId of the role you want to remove from a user.URL paramyes

Request

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

Response

200 OK