GET
/
roles
/
{id}
curl --request GET \
  --url https://demo.enneo.ai/api/mind/roles/{id}
{
  "name": "Admin",
  "description": "Handles administrative tasks",
  "baseRoleId": 1,
  "permissions": [
    {
      "label": "AI agent permisions",
      "description": "<string>",
      "permissions": [
        {
          "name": "createAiAgent",
          "label": "Create AI agent",
          "value": true
        }
      ]
    }
  ]
}

Authorizations

connect.sid
string
cookie
required

Cookie-based authentication

Path Parameters

id
integer
required

Response

200
application/json
Successful operation
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