post
/{tenantId}/v1/rolesCreate role
Requires Authentication
Roles
Creates a new role in the tenant
Path Parameters
| Name | Type | Description |
|---|---|---|
tenantIdrequired | string (uuid) | Tenant UUID |
Request Body
required
namestring
required
descriptionstring
Responses
Role created
Response Bodyapplication/json
idstring (uuid)
namestring
descriptionstring
permissionsarray
string[]isSystemboolean
createdAtstring (date-time)
Code Examples
curl -X POST 'https://api-next.checkio.co.uk/{tenantId}/v1/roles' \
-H 'Authorization: Bearer {token}' \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"description": "string"
}'