Skip to Content
bpms.ai
ReferenceAccess

Grant an authority to a role

PUT
/api/v1/access/roles/{roleId}/authorities/{code}

Adds a BPMS 3.x authority code to a role of the tenant of the request. The caller needs 6.2.1.2 (edit roles) and the code itself. Granting a code the role already has changes nothing.

Authorization

bearer
headerAuthorizationBearer <token>

The token of a session that createSession opened

Path Parameters

roleId*integer

Id of the role

Formatint64
code*string

Authority code, such as 6.2.1.4

Response Body

The role has the code

Example Request
curl -X PUT 'https://bpms.bpms.work/api/v1/access/roles/0/authorities/string'
Example Response
Empty