Create a Role
Create a new role
- application/json
Request Body
- name string required
Name of the new role
permissionList object[] required
Used to provide the list of permissions associated with the role.
permission object
id int32name stringcategory object
id int32name string- enabled boolean
Used to determine if the role is enabled or disabled. If not provided, role will be enabled by default.
- visibleToAll boolean
Determines if the role is visible to everyone. if not provided, it will be set to false by default.
Responses
- 200
- 400
- 500
Success
- application/json
- Schema
- Example (from schema)
Schema
- id int32
- name string
{
"id": 0,
"name": "string"
}
Bad Request
Internal Server Error
Loading...