# Sows
Sows resources represent data around sow identity or state and are essentially the central nodes for most resources.
Read-only
Sows are created in the Gestal software and read-only access is allowed to an integrator.
# Endpoint
https://api.gestal.cloud/integration/sows
# Parameters
Basic parameters and queries are supported.
# The sow object
In addition to the common request attributes, the following attributes define the object.
| Attribute | Type | Description |
|---|---|---|
gestal_id | 64 bit integer | The Gestal system unique ID for a sow. |
pin_tag | string | The visual ID of a sow. |
rfid1 | 64 bit integer | The first RFID tag. |
rfid2 | 64 bit integer | The second RFID tag. |
state | string | The sow's current state, can be: gilt, open, cycled, bred, gestating, farrowing, farrowed,weaned, retired or unknown. |
state_updated_at | datetime | Date and time at which the sow's state changed for the last time. |
last_location | string | Last known location of the sow. |
location_updated_at | datetime | Date and time at which the sow last changed location. |
section | string | The section where the sow is currently in, can be: breeding, gestation, lactation, growing or unknown. |
parity | integer | Parity of the sow. |
body_condition | integer | Body condition score from 1 to 5: 1=skinny, 2=thin, 3=ideal, 4=fat, 5=obese |
genetic | string | Genetic of the sow. |
birth_at | datetime | Date of birth of the sow. |
entry_at | datetime | Date when the sow entered the site. |
tattoo | string | The sow's tattoo. |
dam | string | The sow's mother. |
sire | string | The sow's father. |
adapted | boolean | If a sow was adapted or trained into free gestation stalls. |
accepted | boolean | If a sow is accepted by its peers into free gestation pens. |
batch | string | The batch of which the sow is currently part of. (ex: a service group or wean group) |
gestal_modif | 64 bit integer | Last time the sow was updated in the Gestal system. |
# Example Response
{
"cloud_id": "sow_hUdntuB2PEPwg03VZqMWKo9VtNt0WA4T",
"gestal_id": 48257620,
"pin_tag": "1234",
"rfid1": 6616539713,
"rfid2": 1069407799,
"state": "farrowing",
"state_updated_at": "2019-05-24T06:00:00.000Z",
"last_location": "far101",
"location_updated_at": "2019-12-18T19:17:31.713Z",
"section": "gestation",
"parity": 11,
"body_condition": 3,
"genetic": null,
"birth_at": "2014-12-31T05:00:00.000Z",
"entry_at": null,
"tattoo": "ABCD",
"dam": null,
"sire": null,
"adapted": true,
"accepted": true,
"batch": "19-13",
"gestal_modif": 1620055329123,
"created_at": "2001-01-01T01:01:01.000Z",
"updated_at": "2001-01-01T01:01:01.000Z"
}