Departments
List departments
Lists the departments set up in Exsited, one page at a time.
GET
cURL
Returns one page of departments under
data, with pagination for the next page. Each department carries its code, name, display_name, description, status and the division it belongs to. Some departments in the list have a null id; those cannot be retrieved on their own. Any other field of the record filters the listing as filter_<field> or filter_<field>_<operator>.
The SDK samples get their client from credentials your app registers once when it starts, as shown in Authentication. To try the call here, click Try it, set
host to your Exsited API host name and paste an access token from Get an access token.Authorizations
An access token from POST /api/v4/oauth2/token. The SDKs get and renew it for you.
Query Parameters
How many records to return on one page.
Example:
20
The next_cursor of the previous page, to fetch the page after it.
The field to sort by; prefix it with - for descending order, such as -created_on.
Example:
"-created_on"