Admin-only endpoint to retrieve a list of departments. - If both start and end are 0, all departments are returned. - Otherwise, returns departments between the given start and end indexes (zero-based).
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer token |
| Parameter | Type | Required | Description |
|---|---|---|---|
| start | integer | Yes | Starting index (0 for beginning) |
| end | integer | Yes | Ending index (0 to return all departments) |
/department/hierarchy endpoint for hierarchical viewBearer authentication header of the form Bearer <token>, where <token> is your auth token.
Starting index (0 for beginning)
x >= 0Ending index (0 to return all departments)
x >= 0