---
title: "Livestock"
url: "https://developer.mla.com.au/apis/device-public-production/versions/1cf272f5-2ff6-4b07-8a8c-ecb73eab03b2/schemas/Livestock"
---

> Full API specification: https://developer.mla.com.au/apis/device-public-production/versions/1cf272f5-2ff6-4b07-8a8c-ecb73eab03b2.md

# Livestock

## OpenAPI definition

```yaml
openapi: 3.1.0
info:
  title: Device Public
  version: v1.0.0
servers:
  - url: https://7d40e2d8b1.gateways.konggateway.com
components:
  schemas:
    Livestock:
      type: object
      properties:
        EID:
          oneOf:
            - type: object
              properties:
                rfid:
                  type: string
                  description: |
                    The RFID is 16 character number
                  minLength: 15
                  maxLength: 16
              required:
                - rfid
            - type: object
              properties:
                nlisId:
                  type: string
                  description: The NLISID is 16 character alphanumeric value. Optional if object
                    is a non-NLIS device
                  minLength: 16
                  maxLength: 16
              required:
                - nlisId
        pic:
          type: string
          pattern: ^[A-Z0-9]{8}$
        applicationDate:
          type: string
        species:
          type: string
          enum:
            - cattle
            - sheep
            - goats
            - camelids
            - pigs
            - buffalos
            - other
        managementEarTagId:
          type: string
        dentition:
          type: integer
      required:
        - pic
        - applicationDate
        - species
        - EID
```
