Task

Submit a task

PUT
/api/task/{taskId}
Submit a multi-source task
curl --request PUT \
  --url https://rologi-motion.example.com/api/task/TASK-200 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Ras-Api-Version: 1' \
  --header 'Ras-Site: WAREHOUSE-01' \
  --header 'Ras-Station: ARM-01' \
  --data '
{
  "metadata": {
    "messageId": "WCS-MSG-TASK-200",
    "createdAt": "2026-10-21T09:00:00.000Z"
  },
  "data": {
    "orderRef": "ORDER-900",
    "sourceSelectionStrategy": "READINESS",
    "target": {
      "portId": "TARGET-1",
      "binId": "900",
      "state": "READY"
    },
    "operation": [
      {
        "operationId": "OP-1",
        "productId": "SKU-42",
        "quantity": {
          "amount": 1,
          "unit": "PIECE"
        },
        "source": {
          "portId": "SOURCE-1",
          "binId": "101",
          "state": "NOT_READY"
        }
      },
      {
        "operationId": "OP-2",
        "productId": "SKU-99",
        "quantity": {
          "amount": 2,
          "unit": "PIECE"
        },
        "source": {
          "portId": "SOURCE-2",
          "binId": "202",
          "state": "NOT_READY"
        }
      }
    ]
  }
}
'
{
  "taskId": "TASK-200",
  "state": "ACCEPTED",
  "operation": [
    {
      "operationId": "OP-1",
      "state": "PLANNED"
    },
    {
      "operationId": "OP-2",
      "state": "PLANNED"
    }
  ]
}

Submit required contributions from independent source bins into one common target. READINESS selects a matching ready source; PRIORITY prepares the lowest numeric priority and waits for its source. Array order is not execution order. A repeated task ID with identical intent returns current progress. Acceptance confirms persistence; the coordinator then submits one operation at a time. One unresolved physical task is admitted per station.

Related guide: Picking workflow.

Authorizations

Authorization
stringheaderrequired

JWT for your integration. Rologi Motion checks the issuer, the audience and the allowlist for your direction.

Parameters

taskId
stringpathrequired
Ras-Site
stringheaderrequired

Supply exactly one nonempty value authorized for this integration.

Ras-Station
stringheaderrequired

Supply exactly one nonempty value authorized for this integration.

Ras-Api-Version
stringheader

API version. Omit to use the oldest supported version; currently 1.

Body

application/json
metadata
objectrequired

Hide child attributes

metadata.messageId
stringrequired

Stable logical-message identity. Preserve it and the complete payload across delivery retries.

metadata.createdAt
stringrequired

UTC time when the sender first created this message; preserved across retries.

data
objectrequired

Required contributions into one target. Array order does not control execution; each operation contributes its own quantity.

Hide child attributes

data.orderRef
stringrequired
data.sourceSelectionStrategy
enum<string>required
Available options: READINESS, PRIORITY
data.target
objectrequired

Hide child attributes

data.target.portId
stringrequired
data.target.binId
stringrequired
data.target.state
enum<string>required

READY can establish an already-present bin, including a target reused across tasks. NOT_READY does not clear port occupancy.

Available options: NOT_READY, READY
data.operation
object[]required

Hide child attributes

data.operation.operationId
stringrequired
data.operation.productId
stringrequired
data.operation.quantity
objectrequired

Hide child attributes

data.operation.quantity.amount
numberrequired
data.operation.quantity.unit
enum<string>required

Initial task execution supports PIECE quantities.

Available options: PIECE
data.operation.source
objectrequired

Hide child attributes

data.operation.source.portId
stringrequired
data.operation.source.binId
stringrequired
data.operation.source.state
enum<string>required

READY can establish an already-present bin, including a target reused across tasks. NOT_READY does not clear port occupancy.

Available options: NOT_READY, READY
data.operation.priority
integer | null

Required and unique for PRIORITY. Lower values are prepared first; omitted for READINESS.

data.operation.skuId
string | null

SKU identifier for reporting when known; independent of the supplier product ID.

Response

application/json

The same task intent already exists; return current progress.

taskId
stringrequired
state
enum<string>required
Available options: ACCEPTED, IN_PROGRESS, RECONCILIATION_REQUIRED, COMPLETED, CANCELLATION_REQUESTED, CANCELLED, FAILED
operation
object[]required

Hide child attributes

operation.operationId
stringrequired
operation.state
enum<string>required
Available options: PLANNED, SUBMISSION_PENDING, SUBMISSION_UNKNOWN, WAITING_FOR_SOURCE, WAITING_FOR_TARGET, COMPLETED, REJECTED, NOT_EXECUTED, CANCELLATION_REQUESTED, IN_PROGRESS
operation.result
object | null

Hide child attributes

operation.result.outcome
enum<string>required
Available options: SUCCESS, PARTIAL, FAILED, UNKNOWN
operation.result.requested
numberrequired
operation.result.unit
stringrequired
operation.result.picked
number | null
operation.result.placed
number | null
operation.result.dropped
number | null
operation.result.errorCode
string | null
operation.result.errorDescription
string | null
operation.result.sourceBin
object | null

Hide child attributes

operation.result.sourceBin.empty
boolean | null

Whether the station reported the source empty. False is an observed value.

operation.result.sourceBin.quantityRemaining
number | null

Nonnegative remaining quantity in the operation unit. Negative reports, including -1, are omitted and audited; your WCS owns inventory reconciliation.

operation.result.targetBin
object | null

Hide child attributes

operation.result.targetBin.full
boolean | null

Whether the station reported the target full. False is an observed value.

operation.result.validationIssues
object[]

Omitted when empty. A counting warning can accompany success; invalid execution quantities produce UNKNOWN with INVALID_ARM_RESULT.

Hide child attributes

operation.result.validationIssues.code
enum<string>required

NEGATIVE_SOURCE_REMAINING is a counting warning only. Other codes invalidate the execution quantities and require reconciliation.

Available options: NEGATIVE_EXECUTION_QUANTITY, PLACED_EXCEEDS_REQUESTED, ACCOUNTED_EXCEEDS_PICKED, NEGATIVE_SOURCE_REMAINING
operation.result.validationIssues.fields
string[]required

Affected fields in the operation result.

activeOperationId
string | null
cancellationRequested
boolean

Cancellation was requested; active work may still finish.

reasonCode
string | null

Reason that execution stopped or requires reconciliation.

executionFinished
boolean | null

New responses/events report whether Motion will prepare further physical work for this task. True frees execution but accounting can still require review. Absent in older payloads means unknown.