curl --request POST \
--url https://demo.enneo.ai/api/mind/roles \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Admin",
"description": "Handles administrative tasks",
"baseRoleId": 1,
"permissions": [
"updateClientSettings"
]
}
'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 The permissions to assign to the new role
The name of the permission to assign to the new role
Role added successfully
curl --request POST \
--url https://demo.enneo.ai/api/mind/roles \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Admin",
"description": "Handles administrative tasks",
"baseRoleId": 1,
"permissions": [
"updateClientSettings"
]
}
'