API reference
/Role-based access control
/- Create role
List all permissions on the platform
List permissions for a company
List user roles for company
Get role
Delete role
Update role
Get applicable scopes for selected roles.
List user group roles
Update user group roles
List user roles
Update user roles
Get user permissions on specific entity.
Get RBAC info for a user
Create role
This endpoint is used to create user roles.
Security
Bearer
A short description of the role mentioning what can it do.
Example:"Manage users for the company."
Company ID which owns the role.
Example:"1aeef911-44cf-49bb-83c7-e06b0d4e7ac2"
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v3/roles
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/rbacapi/v3/roles
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v3/roles \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "User Admin",
"description": "Manage users for the company.",
"isPlatformRole": false,
"companyId": "1aeef911-44cf-49bb-83c7-e06b0d4e7ac2",
"permissions": [
{
"permission": "USER_MANAGEMENT",
"actions": [
"READ",
"WRITE"
]
}
]
}'