getOrganizationList()
Retrieves a list of organizations.
- Name
limit?
- Type
number
- Description
The number of results to return. Must be an integer greater than zero and less than 501.
- Name
offset?
- Type
number
- Description
The number of results to skip.
- Name
query?
- Type
string
- Description
A search query to filter organizations by.
- Name
orderBy?
- Type
name | updated_at | members_count
- Description
The field to order by. Prefix with a
-
to reverse the order. Prefix with a+
to list in ascending order.
getOrganizationList()
examples
getOrganizationList()
with no parameters
In this example, you can see that the returned PaginatedResourceResponse
includes data
, which is an array of Organization
objects, and totalCount
, which indicates the total number of organizations in the system.
While the response can return up to 10 data items, for the sake of brevity, only two are shown in this example response.
getOrganizationList({ limit })
Retrieves organization list that is filtered by the number of results.
getOrganizationList({ offset })
Retrieves organization list that is filtered by the number of results to skip.
getOrganizationList({ query })
Retrieves list of organizations that match the query.
Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint GET/organizations
. See the BAPI reference for more details.