List Roles

Sample Response

{
    "data": [
        {
            "id": 4320,
            "company_id": 1234,
            "location_id": 9876,
            "department_id": 4567,
            "color": "1e71b2",
            "num_stations": 2,
            "name": "Server",
            "job_code": "",
            "sort": 1,
            "stations": [
                {
                    "id": 736238,
                    "role_id": 1013817,
                    "station_number": 1,
                    "name": "test station one"
                },
                {
                    "id": 736239,
                    "role_id": 1013817,
                    "station_number": 2,
                    "name": "test station two"
                }
            ],
            "created": "2021-10-28T16:48:42+0000",
            "modified": "2022-12-02T21:31:44+0000"
        },
        {
            "id": 4321,
            "company_id": 1234,
            "location_id": 9876,
            "department_id": 4567,
            "color": "ceae31",
            "num_stations": 0,
            "name": "Server",
            "job_code": "",
            "sort": 1,
            "stations": [],
            "created": "2021-10-28T16:48:42+0000",
            "modified": "2021-10-28T16:58:12+0000"
        }
    ],
    "meta": {
        "cursor": {
            "current": null,
            "prev": null,
            "next": null,
            "count": 2
        }
    },
    "object": "roles"
}
Language
Authorization
Click Try It! to start a request and see the response here!