Admin-only endpoint that retrieves the full hierarchical structure of all departments. Each department may include nested child departments inside the children array.
children array.
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer token |
parentId: nullchildren arraychildren arrays indicate leaf departments (no sub-departments)