POST
/
roles
curl --request POST \
  --url https://demo.enneo.ai/api/mind/roles \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Admin",
  "description": "Handles administrative tasks",
  "baseRoleId": 1,
  "permissions": [
    "updateClientSettings"
  ]
}'

Authorizations

connect.sid
string
cookie
required

Cookie-based authentication

Body

application/json
name
string

The name of the role

description
string

The description of the role

baseRoleId
integer

The ID of the base role

permissions
string[]

The permissions to assign to the new role

The name of the permission to assign to the new role