post attention-events Endpoint
Sends alert data from activity monitoring devices to PULSE.
POST https://integrations.prod.vas.com/api/batches/locations/com.vas.dairies.id/{location-id}/attention-events
When category=Health:
- eventDateTime: populates as the Health alert date item and Health alert time item
- deviceAttentionScore: populates as the Health alert index/value
All other data sent to VAS will not be visible from PULSE and DairyComp.
Parameters (required)
In addition to the standard Authorization and API Key header parameters, the following are required:
{location-id}integerREQUIRED
VAS-specific 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.
ContentTypestringREQUIRED
Use application/json
Request bodyREQUIRED
Format required for the POST request. See the details below in the Request Schema.
Request Schema

The meta data specifies information about the data or event source.

URI or reverse DNS that identifies the source system

Unique identifier within the source system

Indicates if the resource is deleted in the source system

Date/time stamp (YYYY-MM-DDThh:mm:ss Coordinated Universal Time, also known as Greenwich Mean Time (GMT) time

Date/time stamp (YYYY-MM-DDThh:mm:ss

Person or system that created the resource

Date/time stamp (YYYY-MM-DDThh:mm:ss

Date/time stamp (YYYY-MM-DDThh:mm:ss

Unique identifier in the source system for this data or event

Date/time stamp (YYYY-MM-DDThh:mm:ss
VAS Developer API Data Point | Default DairyComp Item | Standard PULSE Item |
eventDateTime | DXDAT | ACTHLTHDAT ACTHLTHTIM |

The animal data includes animal identification details.


idinteger
VAS-specific dairy cow identifier. This number is used in all VAS products, including PULSE and DairyComp 305. This identifier is unique to each animal in the VAS suite of products, and is the most stable and reliable source of animal identification data. dairyCowId differs from the animal's cowNumber, displayCowNumber, EID 15-digit electronic ID number associated with the animal eartag, and isoId.
schemestring
Identifies the data source as VAS: com.vas.animals.id

Date/time stamp (YYYY-MM-DDThh:mm:ss

Category of alert: Health

Reason(s) for the alert:
Activity
AnimalTemperature
BodyCondition
EatingLess
EnvironmentTemperature
Disturbance
Health
HeartRate
Inactivity
Ketosis Ketosis is a common ailment that usually occurs in early lactation, when the energy demands of milk production are very high and the cow metabolizes fat stores for energy. Symptoms of ketosis may include reduced milk yield, weight loss, reduced appetite, acetone smell of breath and/or milk, and fever.
Lameness Lameness includes any abnormality which causes an animal to change the way it walks, and can be caused by a range of foot and leg conditions, including hoof ailments, hock damage, bruising, sores, or cuts.
Location
LowerRumination
LyingTooLong
LyingTooShort
Mastitis Mastitis is the persistent, inflammatory reaction of the udder tissue due to physical trauma or infection. Symptoms of mastitis include udder swelling, heat, hardness, redness, or pain. The milk may have a watery appearance, flakes, clots, or pus.
MobilityScore
NoMovement
Parturition
PostParturitionRisk
ProlongedParturition
RespirationRate
Standing
StandingUp
Walking
Heat
LowBattery
Offline
UnderWeight
OverWeight
AtTargetWeight
Other
Undefined

Indicates the priority of the alert:
Informational
Normal
Urgent
Critical

Indicates severity of the alert:
Light
Moderate
Severe

Manufacturer and device-specific score for the alert. This data is made available in DairyComp and PULSE as the following item:
VAS Developer API Data Point | Default DairyComp Item | Standard PULSE Item |
deviceAttentionScore | DXLEV | ACTHLTHLVL |
curl -X POST
'https://integrations.prod.vas.com/api/batches/locations/com.vas.dairies.id/{location-id}/attention-events' \
-H 'Authorization: bearer {authorization token}' \
-H 'X-API-Key: {API key}' \
-H 'Content-Type: application/json' \
--data-raw '{
[
{
"resourceType": "AttentionEvent",
"meta": {
"source": "10.1.1.123",
"sourceId": "10.1.1.234",
"isDeleted": false,
"modified": "2024-04-30T14:54:07.609Z",
"created": "2024-04-30T14:54:07.609Z",
"creator": "Technician123",
"validFrom": "2024-04-30T14:54:07.609Z",
"validTo": "2024-04-30T14:54:07.609Z"
},
"location": {
"id": "{location}",
"scheme": "com.vas.dairies.id"
},
"id": "{system name}",
"eventDateTime": "2024-04-30T14:54:07.609Z",
"animal": {
"id": "123456789",
"scheme": "com.vas.animals.id"
},
"alertEndDateTime": "2024-04-30T14:54:07.609Z",
"category": "Health",
"causes": ["AnimalTemperature"],
"priority": "Urgent",
"severity": "Moderate",
"deviceAttentionScore": 106,
}
]
}'
Response
A successful response is 201 Created
. See API Errors and HTTP Status Code Details for other possible responses and errors.