Putaway tasks

Update putaway task priority

PATCH
/api/putaway-tasks/{id}
Update Putaway Task and/or Lines priority.
curl --request PATCH \
  --url https://rologi-flow.example.com/api/putaway-tasks/12345 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Ras-Api-Version: 1' \
  --data '
{
  "lines": [
    {
      "id": "1",
      "priorityTimestamp": "2025-11-01T10:30:00Z",
      "priority": 1
    }
  ],
  "priorityTimestamp": "2025-11-01T10:30:00Z",
  "priority": 1,
  "reason": "Urgent customer order"
}
'
{
  "id": "12345",
  "site": "1000",
  "system": "AS1",
  "state": "CREATED",
  "container": {
    "type": "TOTE",
    "variant": "TOTE-S",
    "lpn": "TOTE-001-001",
    "location": "AS1-01-001"
  },
  "createdAt": "2025-11-01T08:15:30.125Z",
  "updatedAt": "2025-11-01T09:42:10.500Z",
  "lines": [
    {
      "id": "1",
      "state": "CREATED",
      "item": "digital-camera",
      "quantity": {
        "amount": 3,
        "unit": "PIECE"
      },
      "createdAt": "2025-11-01T08:15:30.125Z",
      "updatedAt": "2025-11-01T09:42:10.500Z",
      "priorityTimestamp": "2025-11-01T10:30:00Z",
      "priority": 1,
      "container": {
        "type": "TOTE",
        "variant": "TOTE-S",
        "lpn": "TOTE-001-001",
        "location": "AS1-01-001"
      },
      "expiryDate": "2025-12-31",
      "lotNumber": "XYZ24041508A",
      "batchNumber": "X24078",
      "finishedAt": "2025-11-01T10:05:00.000Z"
    }
  ],
  "name": "Morning DHL delivery 2025-11-01",
  "priorityTimestamp": "2025-11-01T10:30:00Z",
  "priority": 1,
  "type": "GOODS_RECEIPT",
  "traits": {
    "deliveryNote": "DN-2025-000456"
  },
  "finishedAt": "2025-11-01T10:05:00.000Z"
}

Priority of a Putaway Task and of each of its Lines is expressed by the same pair of sort keys: priorityTimestamp (earlier first) and priority (lower value first, 0 is the highest priority); missing values sort last. How the Task and Line pairs are combined is defined by the sorting strategy of the workstation activity processing the work, e.g. Task first and then Line, or Line first and then Task; strategies may differ per activity, and some automation technologies apply their own ordering. Putaway orders the Lines of all activated carts together, by Line priority first and then by Task priority. To prioritize by priority only (e.g. CRITICAL = 0, HIGH = 10, MEDIUM = 20, LOW = 30), never send priorityTimestamp; sending it for some Tasks or Lines only makes those sort before all others. The automation technology may evaluate priorityTimestamp with reduced precision. Only lines listed in the request are updated; omitted lines keep their current values. The Task priority pair is always replaced by the request, so an omitted or null field clears it; the same applies to the priority pair of each listed line. Putaway Tasks already in progress can be reprioritized as well; the new priority orders their remaining work. Requires a permission granted to administrators and to the WMS integration.

Authorizations

Authorization
stringheaderrequired

JWT bearer token authentication.

Parameters

id
stringpathrequired

Unique identifier of the putaway task.

Ras-Api-Version
enum<string>header
Available options: 1

Body

application/json
lines
object[]required

List of Putaway Task Lines whose priority should be updated.

Hide child attributes

lines.id
stringrequired

Identifier of the Putaway Task Line, unique within the Putaway Task.

lines.priorityTimestamp
string | null

Line-level priority key, earlier first; missing values sort last. Rounded to whole seconds. Omitted or null clears it.

lines.priority
integer | null

Line-level priority key, lower value first (0 is the highest priority); missing values sort last. Omitted or null clears it.

priorityTimestamp
string | null

Task-level priority key, earlier first; missing values sort last. Rounded to whole seconds. Omitted or null clears it.

priority
integer | null

Task-level priority key, lower value first (0 is the highest priority); missing values sort last. Omitted or null clears it.

reason
string | null

Optional reason for the priority change given by the operator, kept in the audit trail of the Putaway Task.

Response

application/json

OK

id
stringrequired

Unique identifier of the Putaway Task.

site
stringrequired

Identifier of the site or warehouse.

system
stringrequired

Identifier of the automation system within the site or warehouse into which stock will be be placed.

state
enum<string>required

Current state of the Putaway Task.

Available options: CREATED, ACTIVATED, IN_PROGRESS, REVOKED, COMPLETED, CANCELED, FAILED
container
objectrequired

The container from which the items of this Putaway Task are sourced.

Hide child attributes

container.type
enum<string>required

Type of the container.

Available options: PALLET, CART, PUT_WALL, TOTE, CRATE, BOX, BAG, SLOT, AUTOSTORE_BIN, WELAND_TRAY
container.variant
string | null

Optional container variant (for example size or model).

container.lpn
string | null

License plate number, barcode, or other scannable identifier of the container.

container.location
string | null

Optional physical location of the container.

createdAt
stringrequired

Time when the Putaway Task was created in Rologi Flow, e.g. received from the integrated system. It is not the start of its execution.

updatedAt
stringrequired

Time of the latest change of the Putaway Task recorded in Rologi Flow. It is not the time of its completion.

lines
object[]required

List of this Putaway Task Lines.

Hide child attributes

lines.id
stringrequired

Identifier of the Putaway Task Line, it needs to be unique in the context of a single Putaway Task.

lines.state
enum<string>required

Current state of the Putaway Task Line.

Available options: CREATED, IN_PROGRESS, REVOKED, COMPLETED, CANCELED, FAILED
lines.item
stringrequired

Stock keeping unit identifier.

lines.quantity
objectrequired

Quantity to be put away.

Hide child attributes

lines.quantity.amount
number

Numeric value representing the quantity amount.

lines.quantity.unit
enum<string> | null

Unit of measure for the quantity, such as pieces or grams. If not given, the default unit of measure applies, which is pieces unless agreed otherwise.

Available options: PIECE, GRAM, KILOGRAM
lines.createdAt
stringrequired

Time when the Putaway Task Line was created in Rologi Flow, e.g. received from the integrated system. It is not the start of its execution.

lines.updatedAt
stringrequired

Time of the latest change of the Putaway Task Line recorded in Rologi Flow. It is not the time of its completion.

lines.priorityTimestamp
string | null

Line-level priority key, earlier first; missing values sort last. Rounded to whole seconds.

lines.priority
integer | null

Line-level priority key, lower value first (0 is the highest priority); missing values sort last.

lines.container
object | null

The optional container in which the items are placed to be put away.

Hide child attributes

lines.container.type
enum<string>required

Type of the container.

Available options: PALLET, CART, PUT_WALL, TOTE, CRATE, BOX, BAG, SLOT, AUTOSTORE_BIN, WELAND_TRAY
lines.container.variant
string | null

Optional container variant (for example size or model).

lines.container.lpn
string | null

License plate number, barcode, or other scannable identifier of the container.

lines.container.location
string | null

Optional physical location of the container.

lines.expiryDate
string | null

Optional expiry date of the item.

lines.lotNumber
string | null

Optional lot number of the item.

lines.batchNumber
string | null

Optional batch number of the item.

lines.finishedAt
string | null

Time when the Putaway Task Line reached a final state, whichever it is, see its state for the outcome. Not given until then.

name
string | null

Optional name for the Putaway Task.

priorityTimestamp
string | null

Task-level priority key, earlier first; missing values sort last. Rounded to whole seconds.

priority
integer | null

Task-level priority key, lower value first (0 is the highest priority); missing values sort last.

type
string | null

Optional type of the Putaway Task.

traits
object | null

Free-form key/value traits of the Putaway Task as supplied by the integrated system. Not given when none were supplied.

finishedAt
string | null

Time when the Putaway Task reached a final state, whichever it is, see its state for the outcome. Not given until then.