Include Parameter

The include query parameter is used to request related resources be added to the included member of the Response Object.

To include multiple related resources in a response, separate them by commas (,). An unsupported include returns 400.

In some cases, related resources may not have their own endpoints and may not be directly related to the resource for the endpoint used in the request. In this case, you can traverse the resource relationships using dots (.).

Examples

https://api.eventtemple.com/v2/events?include=space
https://api.eventtemple.com/v2/bookings?include=group,group.room_rates

Common booking includes

account, contact, user, stage, events, line_items, payments, group, booking_scheduled_payments, booking_packages

Sparse fieldsets

Request only the attributes you need to keep responses small:

https://api.eventtemple.com/v2/bookings?fields[bookings]=name,start_date,end_date,status

Did this page help you?