custom-events Endpoint

The custom-events endpoint provides bulk data related to custom events for all animals in the herd. All animals (live, sold, and dead) are included in the response for this endpoint. To see all custom items for a location, use the custom-event-names endpoint.

NOTE: This endpoint requires Bulk Data Access.
IMPORTANT: This endpoint does not retrieve any calculated or standard events. This endpoint will only retrieve events that were uniquely created by the dairy. If you do not see an event in this endpoint, it is possible that the data already exists in a standard endpoint. See VAS Developer API Resources to review all available VAS endpoints.

https://platform-vendor-api.vas.com/locations/com.vas.dairies.id/{location-id}/custom-events/{event-name}

PATH PARAMETERS

{location-id}*
integer

Location identifier. For routes with “com.vas.dairies.id”, {location-id} is a VAS-specific dairy id, commonly referred to as {dairyId} when not part of an ICARClosed International Committee for Animal Recording (ICAR) is a global organization focused on the standardization of animal identification, recording, genetic evaluation, and data management. location scheme.

{event-name}*
integer

Specifies the custom event to display in the results.

* Required


QUERY PARAMETERS

page
integer

Sets the page number to display in the results. If no parameter is defined, page 1 displays.

pageSize
integer

Sets the number of items to display on one page of results. If no parameter is defined, the response includes 10 items per page. The maximum pageSize is 1000.

start-date-time
string

Specifies a start date and time (optional) for which to include results. Format the date as YYYY-MM-DD. To include a start time as well, add Thh:mm:ss to the date. A "T" is required to separate the date and time.

If no parameter is defined, all results for the past year are included. To specify a date range, include both a start-date-time and an end-date-time. See the sample request below.

end-date-time
string

Specifies an end date and time (optional) for which to include results. Format the date as YYYY-MM-DD. To include an end time as well, add Thh:mm:ss to the date. A "T" is required to separate the date and time.

If no parameter is defined, all results for the past year are included. To specify a date range, include both a start-date-time and an end-date-time. See the sample request below.