DELETE /users/{userId}/roles/{roleKey}

DELETE /users/{userId}/roles/{roleKey}

Revoke a role assigned to a user. 

Path Parameters

Id
The id associated with a specific user.
roleKeyThe unique key associated with the role to revoke: default-user, admin, or org-admin.

Example Request

curl -X DELETE \
  https://api-us.integrate.sugarapps.com/elements/api-v2/users/12435/roles/admin \
  -H 'authorization: User sAfK7LJGNz5ZHcNrvdJvLI=f03WbTbH6aRKc0HJ3oOIi, Organization 58168435e3b9959a929eb04b6218b9a2' \ \
  -H 'Content-Type:application/json' \

Example Response

The response is empty. You can confirm that you revoked the role with GET /users/{id}/roles