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 does not have an example.

Authorizations

connect.sid
string
cookie
required

Cookie-based authentication

Path Parameters

id
integer
required

Body

application/json

Response

200

Role updated successfully