Zum Hauptinhalt springen
GET
/
roles
/
{id}
Get role by id
curl --request GET \
  --url https://demo.enneo.ai/api/mind/roles/{id} \
  --header 'Authorization: Bearer <token>'
{
  "name": "Admin",
  "description": "Handles administrative tasks",
  "baseRoleId": 1,
  "permissions": [
    {
      "label": "AI agent permisions",
      "description": "<string>",
      "permissions": [
        {
          "name": "createAiAgent",
          "label": "Create AI agent",
          "value": true
        }
      ]
    }
  ]
}

Autorisierungen

Authorization
string
header
erforderlich

JWT-based authentication

Pfadparameter

id
integer
erforderlich

Antwort

Successful operation

name
string

The name of the role

Beispiel:

"Admin"

description
string

The description of the role

Beispiel:

"Handles administrative tasks"

baseRoleId
integer

The ID of the base role

Beispiel:

1

permissions
(object | string)[]

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