list_departments
Retrieve a paginated list of all departments with parent IDs to rebuild hierarchy on the client side.
Instructions
List all departments as a flat paginated list. Each record has a parent_id to reconstruct the hierarchy client-side.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number | |
| limit | No | Items per page | |
| sort_by | No | Field to sort by (default: created_at) | |
| sort_order | No | Sort direction (default: desc) | |
| created_after | No | ISO 8601 datetime lower bound on created_at | |
| created_before | No | ISO 8601 datetime upper bound on created_at | |
| updated_after | No | ISO 8601 datetime lower bound on updated_at | |
| updated_before | No | ISO 8601 datetime upper bound on updated_at |