---
title: "Livestock"
url: "https://stg.developer.mla.com.au/apis/device-public-staging/versions/51bbd5df-9d52-4e96-8fab-3c0fd2f54a36/schemas/Livestock"
---

> Full API specification: https://stg.developer.mla.com.au/apis/device-public-staging/versions/51bbd5df-9d52-4e96-8fab-3c0fd2f54a36.md

# Livestock

## OpenAPI definition

```yaml
openapi: 3.1.0
info:
  title: Device Public
  version: v1.0.0
servers:
  - url: https://6dc8806175.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
```
