Get all roles
GET {{baseUrl}}/roles?start=0&limit=<integer>
Returns all the roles within the company.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
start | number | Pagination start | |
limit | string | Items shown per page |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"success":true,"data":[{"id":1,"parent_role_id":1,"name":"(Unassigned users)","active_flag":true,"assignment_count":"0","sub_role_count":"0","level":1},{"id":2,"parent_role_id":1,"name":"Admins","active_flag":true,"assignment_count":"1","sub_role_count":"1","level":1},{"id":3,"parent_role_id":2,"name":"Reviewers","active_flag":true,"assignment_count":"1","sub_role_count":"0","level":2}],"additional_data":{"pagination":{"start":0,"limit":100,"more_items_in_collection":false}}}