Returns a paginated list of departments.
Security: OAuth 2.0
The Lucca API implements the oAuth 2 protocol with the client-credentials-flow. Refer to RFC8725.
Set the API version.
2024-11-01 "2024-11-01"10Only execute the request if current cached version of the resource does not match the one given here.
Only execute the request if current cached version of the resource matches the one given here. Useful to avoid concurrency conflicts.
List of compression algorithms you support.
Filter departments by their name and/or remoteId. The search is case insensitive and looks for partial matches.
1When omitted: return both archived and non-archived resources.
When true: only return archived resources.
When false: only return non-archived resources.
Cursor of the page to retrieve. Read more about pagination.
Number of items per page. Defaults to 25. Maximum is 100. Read more about pagination.
0 <= x <= 100Include metadata:
embedded: the partial or complete representations of related resources
(e.g. the employee the resource belongs to).links: links to related resources or actions (e.g. approving a leave-request).
May be null when you do not have access to the resource (or action).totalCount: only applicable on collections (i.e. lists of resources), gives
the total number of items across all pages.Read more about expanding responses.
embedded, links, totalCount OK
A collection of department resources.
"departments"100Total number of department resources across all pages that satisfy query parameters.
x >= 0Links to related resources