departments
Returns a paginated collection of departments.
Arguments
ancestorIds
The IDs of the departments whose descendants, at any depth, to return.
contactIds
The IDs of the contacts in the departments to return.
createdByUserIds
The IDs of the users who created the records to return.
createdOnMax
The latest creation date to return.
createdOnMin
The earliest creation date to return.
levels
The tree levels of the records to return. Top-level departments are level 1.
limit
The number of records returned. The default is 20, and the maximum is 500.
page
The page number to return. Starts at 1.
parentIds
The IDs of the departments whose direct children to return.
q
The text to search for. Matches name.
sortDirection
The sort direction. The default is DESC.
Allowed values:
sortField
The field to sort by. One of created_at, updated_at, name,
contacts_count, disclosures_count, filings_count, and ideas_count.
The default is created_at.
sourceEnums
The source values of the records to return.
Allowed values:
updatedByUserIds
The IDs of the users who last updated the records to return.
updatedOnMax
The latest last-updated date to return.
updatedOnMin
The earliest last-updated date to return.
Returns
collection
A collection of paginated DepartmentCollection
metadata
Pagination Metadata for navigating the Pagination