Skip to navigation

departments

Returns a paginated collection of departments.

Arguments

ancestorIdslist of StringsOptional
The IDs of the departments whose descendants, at any depth, to return.
contactIdslist of StringsOptional
The IDs of the contacts in the departments to return.
createdByUserIdslist of StringsOptional
The IDs of the users who created the records to return.
createdOnMaxStringOptional
The latest creation date to return.
createdOnMinStringOptional
The earliest creation date to return.
levelslist of IntegersOptional

The tree levels of the records to return. Top-level departments are level 1.

limitIntegerOptional
The number of records returned. The default is 20, and the maximum is 500.
pageIntegerOptional
The page number to return. Starts at 1.
parentIdslist of StringsOptional
The IDs of the departments whose direct children to return.
qStringOptional
The text to search for. Matches name.
sortDirectionSortDirectionEnumOptional

The sort direction. The default is DESC.

Allowed values:
sortFieldStringOptional

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.

sourceEnumslist of DepartmentSourceEnumsOptional
The source values of the records to return.
Allowed values:
updatedByUserIdslist of StringsOptional
The IDs of the users who last updated the records to return.
updatedOnMaxStringOptional

The latest last-updated date to return.

updatedOnMinStringOptional

The earliest last-updated date to return.

Returns

a DepartmentCollection
collectionlist of Departments
A collection of paginated DepartmentCollection
Pagination Metadata for navigating the Pagination