Checkio API
post/{tenantId}/v1/roles

Create role

Requires Authentication
Roles

Creates a new role in the tenant

Path Parameters

NameTypeDescription
tenantId
required
string (uuid)Tenant UUID

Request Body

required
name
string
required
description
string

Responses

Role created

Response Bodyapplication/json
id
string (uuid)
name
string
description
string
permissions
array
string[]
isSystem
boolean
createdAt
string (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"
}'