Create record
create_recordCreate dated farm event records—feeding, health, movement, turnout, mating, breeding, or exposure—and attach them to animals or groups so they appear in herd history.
Instructions
Create a record (a dated event such as a feeding, health treatment, movement, or a turnout, mating, breeding or exposure observation) and attach it to animals and/or groups. A turnout, mating, breeding or exposure observation is an ordinary dated record — never a birth proposal and never offspring. Route it here with type GENETIC, preserving the producer’s facts, unknowns and attachments. For example: a ram joining a ewe is a GENETIC record; a ewe lambing twins is a propose_birth_event bundle. Always pass at least one resolved animal or group UUID — a record attached to nothing will not appear in any animal's history.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Short name for the event. | |
| type | Yes | The kind of event. Use GENETIC for turnout, mating, breeding or exposure observations; FEED for feeding; HEALTH for health or condition; MOVEMENT for a move or pasture change; OTHER for a neutral stock check. | |
| farm_id | No | The ID of the farm (optional if a default is set). | |
| group_ids | No | Group UUIDs this record applies to. | |
| animal_ids | No | Animal UUIDs this record applies to. | |
| applied_at | Yes | When the event occurred (ISO date/time). | |
| description | No | Optional description of the record. |