# Weanings
# Endpoint
https://api.gestal.cloud/integration/events/weanings
# The weaning object
In addition to the common request and event attributes, the following attributes define the object.
| Attribute | Type | Description | Pending |
|---|---|---|---|
quantity | integer | The number of piglets. | No |
age | integer | The age of piglets. | No |
weight | integer | The piglets' weight in grams. | Yes |
litter | integer | The litter's ID. | No |
# Example Response
{
"data": [
{
"cloud_id": "ew_ErBm7vf4kPKctSqEDEcdpZVRATXE8TIU",
"gestal_id": 300,
"event_id": "1233444",
"event_at": "2019-12-18T00:00:00.000Z",
"event_type": "weaning",
"user": "Marc",
"parity": 4,
"batch": "",
"quantity": 9,
"age": 21,
"weight": 2,
"litter": 22,
"gestal_modif": 1620055329123,
"created_at": "2020-01-14T19:06:52.749Z",
"updated_at": "2020-01-14T19:06:52.771Z"
}
],
"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
}
}