---
title: "Add/Modify/Delete device(s) status(es) Copy"
url: "https://stg.developer.mla.com.au/apis/device-public-staging/versions/51bbd5df-9d52-4e96-8fab-3c0fd2f54a36/operations/updateDeviceStatusOpt"
---

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

# Add/Modify/Delete device(s) status(es) Copy

`OPTIONS` `/public/device/v1/status/update`

Operation ID: `updateDeviceStatusOpt`

INTERNAL USE.

## Header parameters

- `correlationId` (string, required) - UUID used to track the API call from the invoker's perspective. Sender is required to include the correlationId in the request to use it as a tracker for asynchronous responses.

## Responses

- `200` - OK
- `400` - Invalid sample supplied
- `404` - Sample not found
- `422` - Validation Error

## OpenAPI definition

```yaml
openapi: 3.1.0
info:
  title: Device Public
  version: v1.0.0
servers:
  - url: https://6dc8806175.gateways.konggateway.com
paths:
  /public/device/v1/status/update:
    options:
      summary: Add/Modify/Delete device(s) status(es) Copy
      deprecated: false
      description: "INTERNAL USE. "
      operationId: updateDeviceStatusOpt
      tags:
        - Miscellaneous
      parameters:
        - name: correlationId
          in: header
          description: UUID used to track the API call from the invoker's perspective.
            Sender is required to include the correlationId in the request to
            use it as a tracker for asynchronous responses.
          required: true
          example: ""
          schema:
            type: string
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  receiptId:
                    type: string
                  updatedDevices:
                    type: array
                    items:
                      type: object
                      properties:
                        rfid:
                          type: string
                        nlisId:
                          type: string
                        statuses:
                          type: array
                          items:
                            type: object
                            properties:
                              action:
                                type: string
                              status:
                                type: string
                              statusCode:
                                type: string
                              category:
                                type: string
                              programCode:
                                type: string
                              effectiveDate:
                                type: string
                              expiryDate:
                                type: string
                              comments:
                                type: string
                required:
                  - receiptId
                  - updatedDevices
              example:
                receiptId: adhfoa90sd78fa
                updatedDevices:
                  - rfid: 982 123489467678
                    nlisId: 3MGJE153XBJ00611
                    statuses:
                      - action: Apply
                        status: Anthrax Withholding (AV-AV1)
                        statusCode: AV1
                        category: Vaccination
                        programCode: AV
                        effectiveDate: 01/01/2025
                        expiryDate: 01/03/2025
                        comments: Assigned to cattle that have been vaccinated against anthrax.
          headers:
            correlationId:
              example: ""
              required: true
              description: UUID used to track the API call from the invoker's perspective.
                Sender is required to include the correlationId in the request
                to use it as a tracker for asynchronous responses.
              schema:
                type: string
        "400":
          description: Invalid sample supplied
          content:
            application/json:
              schema:
                type: object
                properties: {}
          headers: {}
        "404":
          description: Sample not found
          content:
            application/json:
              schema:
                type: object
                properties: {}
          headers: {}
        "422":
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/HTTPValidationError"
          headers: {}
      security: []
security: []
components:
  schemas:
    HTTPValidationError:
      required:
        - details
      properties:
        details:
          items:
            $ref: "#/components/schemas/ValidationError"
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        field:
          type: string
          title: Message
        message:
          type: string
          title: Error Type
      type: object
      required:
        - field
        - message
      title: ValidationError
```
