curl --request POST \
--url https://api.example.com/cabinet/admin/rbac/roles \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"level": 499,
"description": "<string>",
"permissions": [
"<string>"
],
"color": "<string>",
"icon": "<string>"
}
'{
"id": 123,
"name": "<string>",
"level": 123,
"is_system": true,
"is_active": true,
"description": "<string>",
"permissions": [
"<string>"
],
"color": "<string>",
"icon": "<string>",
"user_count": 0,
"created_at": "2023-11-07T05:31:56Z"
}Create a new custom admin role.
curl --request POST \
--url https://api.example.com/cabinet/admin/rbac/roles \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"level": 499,
"description": "<string>",
"permissions": [
"<string>"
],
"color": "<string>",
"icon": "<string>"
}
'{
"id": 123,
"name": "<string>",
"level": 123,
"is_system": true,
"is_active": true,
"description": "<string>",
"permissions": [
"<string>"
],
"color": "<string>",
"icon": "<string>",
"user_count": 0,
"created_at": "2023-11-07T05:31:56Z"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response