PATCH
/
roles
/
{id}
curl --request PATCH \
  --url https://demo.enneo.ai/api/mind/roles/{id} \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Admin",
  "description": "Handles administrative tasks",
  "baseRoleId": 1,
  "permissions": [
    {
      "label": "AI agent permisions",
      "description": "<string>",
      "permissions": [
        {
          "name": "createAiAgent",
          "label": "Create AI agent",
          "value": true
        }
      ]
    }
  ]
}'
This response has no body data.

Authorizations

connect.sid
string
cookie
required

Cookie-based authentication

Path Parameters

id
integer
required

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
array

Permissions for this role. When reading: returns grouped permissions with labels. When writing: accepts array of permission names