Collection
A collection is returned when a list is requested. The response payload for a collection is wrapped in extra metatags, whereas an instance only contains the entity information.
Example |
---|
The request below returns all of the Member Variables defined for this community. In this case the resource will not just return an array of Member Variables, instead that array will be embedded in a response envelope.
|
Use the appropriate regional endpoint to ensure that you comply with your organization's privacy policy, and applicable laws and regulations. For details about the available regional endpoints, and how to identify your organization's region, see API Access.
The response envelope provides important metadata concerning the data, such as how to paginate through it.
Response envelope format |
---|
|
The following table describes the properties in the response envelope:
Property | Description |
---|---|
items
|
The actual data, which will be an array of whatever type of entity you requested. |
links
|
The
links property provides useful URLs that can be
used for pagination. Possible properties are:
|
meta
|
The
meta property provides other metadata pertaining
to this request. Possible values are:
|
Example: Pagination of a collection |
---|
|