---
title: "Reallocate unused device(s) to a new PIC"
url: "https://developer.mla.com.au/apis/device-public-production/versions/1cf272f5-2ff6-4b07-8a8c-ecb73eab03b2/operations/transferUnusedDevice"
---

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

# Reallocate unused device(s) to a new PIC

`POST` `/public/device/v1/reallocate`

Operation ID: `transferUnusedDevice`

This API allows the invoker to reallocate a single/list of unused device(s) to a new PIC. The route takes a single/list of device(s) as an input and returns a receipt ID with a list of EID(s) of successfully reallocated device(s).

## 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.

## Request body

Content types: `application/json`

## Responses

- `200`
- `400`
- `422`

## OpenAPI definition

```yaml
openapi: 3.1.0
info:
  title: Device Public
  version: v1.0.0
servers:
  - url: https://7d40e2d8b1.gateways.konggateway.com
paths:
  /public/device/v1/reallocate:
    post:
      summary: Reallocate unused device(s) to a new PIC
      deprecated: false
      description: This API allows the invoker to reallocate a single/list of unused
        device(s) to a new PIC. The route takes a single/list of device(s) as an
        input and returns a receipt ID with a list of EID(s) of successfully
        reallocated device(s).
      operationId: transferUnusedDevice
      tags:
        - Device
      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
      requestBody:
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: "#/components/schemas/ReallocateDeviceRequest"
            example:
              - fromPic: 3MGJE153
                toPic: 3MGJE162
                reallocateEffectiveDate: 05-05-2025
                EID:
                  nlisId: 3MGJE153XBJ00611
                comments: Device to be used in new PIC.
              - fromPic: 3MGJE167
                toPic: 3MGJE188
                reallocateEffectiveDate: 05-05-2025
                EID:
                  nlisId: 3MGJE153XBJ00612
                comments: Device to be used in new PIC.
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                type: object
                properties:
                  receiptId:
                    type: string
                  reallocatedDevices:
                    type: array
                    items:
                      oneOf:
                        - type: object
                          properties:
                            rfid:
                              type: string
                              minLength: 15
                              maxLength: 16
                              description: |
                                The RFID is 16 character number
                          required:
                            - rfid
                        - type: object
                          properties:
                            nlisId:
                              type: string
                              description: |
                                The NLISID is 16 character alphanumeric value.
                          required:
                            - nlisId
                required:
                  - receiptId
                  - reallocatedDevices
              example:
                receiptId: 3948rj9304jr23
                reallocatedDevices:
                  - nlisId: 3MGJE153XBJ00611
                  - nlisId: 3MGJE153XBJ00612
          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: ""
          content:
            application/json:
              schema:
                type: object
                properties: {}
          headers: {}
        "422":
          description: ""
          content:
            application/json:
              schema:
                title: ""
                type: object
                properties:
                  error:
                    type: string
                  details:
                    items:
                      $ref: "#/components/schemas/ValidationError"
                    type: array
                    title: Detail
                required:
                  - error
                  - details
          headers: {}
      security: []
security: []
components:
  schemas:
    ReallocateDeviceRequest:
      type: object
      properties:
        fromPic:
          type: string
          pattern: ^[A-Z0-9]{8}$
        toPic:
          type: string
          pattern: ^[A-Z0-9]{8}$
        reallocateEffectiveDate:
          type: string
        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.
                  minLength: 16
                  maxLength: 16
              required:
                - nlisId
        comments:
          type: string
      required:
        - fromPic
        - toPic
        - reallocateEffectiveDate
        - EID
    ValidationError:
      properties:
        field:
          type: string
          title: Message
        message:
          type: string
          title: Error Type
      type: object
      required:
        - field
        - message
      title: ValidationError
```
