Skip to Content
bpms.ai
ReferenceAccess

Unassign a role from a user

DELETE
/api/v1/access/users/{userId}/roles/{roleId}

Takes one of the tenant's roles from a user of the tenant of the request. The caller needs 6.2.2.2 (edit users). Unassigning a role the user does not have changes nothing.

Authorization

bearer
headerAuthorizationBearer <token>

The token of a session that createSession opened

Path Parameters

userId*integer

Id of the user

Formatint64
roleId*integer

Id of the role

Formatint64

Response Body

The user does not have the role

Example Request
curl -X DELETE 'https://bpms.bpms.work/api/v1/access/users/0/roles/0'
Example Response
Empty