Roles

(ms.roles_new)

The roles are a set of permissions that are allotted to a specific user.



Fields

Value Description
name   
Type: string
Required
The name of the role.
alias   
Type: string
The unique alias created automatically from the name of the role.
give_admin_access   
Type: string
store_entities_permissions   
Type: string
type   
Type: string
It stores the type of the permission. The types of permission can be Group or Granular.
sub_type   
Type: string
Required
groups   
Type: array
The groups of the admin panel sections. Enable the flag of the sections of which you want to give access to the role.
permissions   
Type: array
name
Type: string
status
Type: string
commands
Type: array

Commands (Endpoints)

POST /api/1/entity/ms.roles_new   
Creates a new role
DEL /api/1/entity/ms.roles_new/{resource_id}   
Deletes a role
PUT /api/1/entity/ms.roles_new/{resource_id}   
Updates an existing role
GET /api/1/entity/ms.roles_new/{resource_id}   
Retrieves a single role
GET /api/1/entity/ms.roles_new   
Retrieves a list of roles