1. Home
  2. /
  3. Resource Types
  4. /
  5. Livestock
  6. /
  7. Animal Set Leave Event

Resource Type: Livestock – Animal Set Leave Events


URLs

Get all animal set leave events that you have access to

GET /data/livestock/animal-set-leaves

Get a specific animal set leave event

GET /data/livestock/animal-set-leaves/{animalSetLeaveId}

Get all animal set leave events associated with a holding

GET /data/holdings/{holdingId}/livestock/animal-set-leaves

Get a single animal set leave event associated with a holding

GET /data/holdings/{holdingId}/livestock/animal-set-leaves/{animalSetLeaveId}

Response Structure

A call to the animal set leave event endpoints returns the following fields.

{
  "@self": "string",
  "location": {...},
  "meta": {...},
  "resourceType": "/livestock/animal-set-leave",
  "contemporaryGroup": "string",
  "eventDateTime": "2023-01-03T11:00:00Z",
  "id": "string",
  "remark": "string",
  "responsible": "string",
  "traitLabel": {...},
  "animal": {...},
  "animalSetId": "string"
}
Response Item Description Data Type
Self A link to this specific animal set leave event URI
Location An identifier for the location of the animal set leave event Identifier
Meta Meta data for the resource Metadata
Resource Type The fixed discriminator for the animal set leave event resource type.
Value: /livestock/animal-set-leave
String
Contemporary Group A contemporary group code that would affect statistical analysis String
Event Date Time The time the event occurred Datetime
Id The Pure Farming Id of this animal set leave event UUID
Remark A comment or remark field for additional user-specified information about the event String
Responsible Use if an observation is manually recorded, or an event is carried out or authorised by a person String
Trait Label Represents a formal trait, identifies the recording system and trait Identifier
Animal Unique animal scheme and identifier combination Identifier
Animal Set Id Unique animal set id for this animal set leave event String