custom-event-names Endpoint

Returns all custom events defined for the location. Use the custom-events endpoint to request custom event data for the herd.

GET https://integrations.prod.vas.com/api/locations/com.vas.dairies.id/{location-id}/custom-event-names

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.

Path Parameters (required)

The following parameters must be included in the request path for this endpoint: 

{location-id}integerREQUIRED

VAS-specificClosed A data value that originates from the VAS product line. [dairy] location identifier. For routes with “com.vas.dairies.id”, {location-id} is a VAS-specific dairy id.

Sample Request (cURL)
curl -X GET \
https://integrations.prod.vas.com/api/locations/com.vas.dairies.id/{location-id}/custom-event-names \
-H 'Authorization: bearer {authorization token}' \
-H 'X-API-Key: {API key}' 

Response Schema

Sample Response (JSON)
{
    "member": [
        {
            "name": "TOCLOSE"
        },
        {
            "name": "WELL"
        },
        {
            "name": "ILLMISC"
        },
        {
            "name": "MEASURE"
        },
        {
            "name": "BCSBAD"
        }
    ]
}
NOTE: See API Errors and HTTP Status Code Details for a list of API errors and HTTP status codes.