curl --location --request POST 'https://test.your-api-server.com/v2/auth/roles' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "supervisor",
"description": "string",
"menu": [
{
"_id": "string",
"link": "main.dashboard",
"name": "Dashboard",
"icon": "pi pi-home",
"menuFather": "string",
"actions": [
"R",
"W"
],
"state": true,
"order": 0,
"children": [
{}
]
}
],
"permissions": [
{
"module": "scheduling",
"actions": [
"R"
]
}
],
"appId": "ultraindustria"
}'