# Event Resources

A herd management resource is an event-type resource identified by an event_id, which must also match an existing sow (with gestal_id), that are generated and synchronized by the Gestal system.

They can be easily accessed trough integration installations but cannot be modified (read-only access).

# Parameters

Basic parameters and queries are supported.

# Common attributes

Most herd management resources share the same base set of attributes.

Attribute Type Description
event_id string The unique ID for an event, either from Gestal or the Integrator.
gestal_id 64 bit integer The Gestal system unique ID for a sow.
event_at datetime Date and time at which the event occurred.
event_type string The event type, can be:
abortion, breeding, cull, heat, litter, piglet_death, piglet_movement, pre_wean, preg_check, sow_movement, weaning or weighting.
parity integer The sow's parity for the event.
user string The user from the Gestal system that created the event.
batch string The batch in which the event took place.
gestal_modif 64 bit integer Last time the event was updated in the Gestal system.
deleted_at datetime Date and time at which the event was deleted. This is used to delete an event in the api.
Last Updated: 5/28/2025, 11:11:50 AM