List divisions [beta]

List the divisions of a hierarchy, filtered by external_hierarchy_id, or of a hierarchy level, filtered by external_hierarchy_level_id. Send exactly one of the two, unless you filter by division_code. An external ID that no hierarchy or hierarchy level has returns an empty list.

Results are paginated with a cursor: pass the previous page's pagination.cursor as cursor. The last page has no pagination.cursor.

Filter by division_code to get a one-item list, or an empty list if the organization has no such division. With this filter, external_hierarchy_id and external_hierarchy_level_id are optional, and the division is listed only if it belongs to the hierarchy and hierarchy level sent. limit and cursor are ignored.

Without the division_code filter, items don't include timezone and schema: use Get division to read them. Hierarchies, hierarchy levels and programs created outside Apex are listed without their external IDs.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
length between 1 and 60
^[a-zA-Z0-9-]+$

External hierarchy ID filter

string
length between 1 and 60
^[a-zA-Z0-9-]+$

External hierarchy level ID filter

string
length between 1 and 36
^[a-zA-Z0-9-]+$

Division code filter

int32
1 to 100

Maximum number of items per page. Default = 10. Maximum = 100.

string

Cursor of the page to return, taken from the previous page's pagination.cursor. Omit it for the first page.

Responses

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json