# Piglet Deaths
# Endpoint
https://api.gestal.cloud/integration/events/piglet-deaths
# The piglet death object
In addition to the common request and event attributes, the following attributes define the object.
| Attribute | Type | Description | Pending |
|---|---|---|---|
quantity | integer | Number of piglets. | No |
sex | string | Piglet's sex. | Yes |
size | string | Piglet's size. | Yes |
cause | string | The cause of death. | No |
litter | integer | The litter's ID. | No |
# Example Response
{
"data": [
{
"cloud_id": "epd_wMAVJCwZGIjvmDHVsHAbUJ7nD5eLkDbR",
"gestal_id": 48257620,
"event_id": "98765432",
"event_at": "2019-05-23T10:37:15.879Z",
"event_type": "piglet_death",
"user": "Carlos",
"parity": 2,
"batch": "",
"litter": 12342,
"quantity": 4,
"sex": "female",
"size": "small",
"cause": "too small",
"gestal_modif": 1620055329123,
"created_at": "2019-05-23T14:04:13.642Z",
"updated_at": "2019-05-23T14:04:13.642Z"
}
],
"meta": {
"total": 1,
"page_total": 1,
"pages": 1,
"per_page": 100,
"current_page": 1,
"next_page": false,
"previous_page": false,
"first_page": true,
"last_page": true,
"out_of_range": false
}
}