# Pre-Weanings

# Endpoint

https://api.gestal.cloud/integration/events/pre-weanings

# The pre-weaning object

In addition to the common request and event attributes, the following attributes define the object.

Attribute Type Description Pending
dest_location string The location where the piglets were moved. No
quantity integer The number of piglets. No
litter integer The litter's ID. No
sex string Piglet's sex. Yes
size string Piglet's size. Yes
weight integer Piglet's weight. Yes

# Example Response

{
  "data": [
     {
        "cloud_id": "epw_DDdU9JcoEd36T8Fc5QWCBgWzrVGrbSVL",
        "gestal_id": 611,
        "event_id": "13144",
        "event_at": "2019-12-08T00:00:00.000Z",
        "event_type": "pre_wean",
        "user": "Marc",
        "parity": 4,
        "batch": "",
        "dest_location": "102",
        "litter": 12,
        "quantity": 5,
        "sex": "female",
        "size": "small",
        "weight": 2546,
        "gestal_modif": 1620055329123,
        "created_at": "2020-01-14T21:02:47.922Z",
        "updated_at": "2020-01-14T21:02:47.926Z"
     }
  ],
  "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
  }
}
Last Updated: 5/28/2025, 11:11:50 AM