ReferenceAccess
Create a role
POST
Creates a role in the tenant of the request with a new uuid. The caller needs 6.2.1.1 (create roles) and every code the role starts with. The name is unique in the tenant regardless of case.
bearerheader
AuthorizationBearer <token>The token of a session that createSession opened
The name, description, and first authority codes of the role
application/json- body
authorities*array<string>description?|Length
length <= 2048name*stringLength
length <= 100The role was created
application/json- response
description?string|nullid?integerFormat
int64name?stringuuid?string|nullcurl -X POST 'https://bpms.bpms.work/api/v1/access/roles' \ -H 'Content-Type: application/json' \ -d '{ "authorities": [ "string" ], "name": "string"}'Example Response
{ "description": "string", "id": 0, "name": "string", "uuid": "string"}