curl --request PATCH \
--url https://demo.enneo.ai/api/mind/roles/{id} \
--header 'Authorization: Bearer <token>' \
--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
}
]
}
]
}
'{
"error": "Contract 121 could not be processed",
"details": "Uncatched null point exception in testFunction() in /app/src/file:212",
"txId": "c916167c94"
}JWT-based authentication
The name of the role
"Admin"
The description of the role
"Handles administrative tasks"
The ID of the base role
1
Permissions for this role. When reading: returns grouped permissions with labels. When writing: accepts array of permission names
Anzeigen untergeordnete attribute
The label of the permission group
"AI agent permisions"
The description of the permission group
Role updated successfully
curl --request PATCH \
--url https://demo.enneo.ai/api/mind/roles/{id} \
--header 'Authorization: Bearer <token>' \
--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
}
]
}
]
}
'{
"error": "Contract 121 could not be processed",
"details": "Uncatched null point exception in testFunction() in /app/src/file:212",
"txId": "c916167c94"
}