Putaway tasks
Ask Rologi Flow to put stock into an automation system.
A putaway task asks to put stock into one automation system. The task names the container from which its items come.
Loading diagram…
The diagram shows the usual order. The order can differ, for example when a task is canceled before its first put. Rologi Flow can also create a putaway task from a decanting process. It then tells your system with Putaway task created. See decanting tasks.
Create or update
Send PUT with the task identifier in the path. Rologi Flow creates the task if it does not exist, or updates it if it exists.
PUT https://rologi-flow.example.com/api/putaway-tasks/12345
Authorization: Bearer <token>
Content-Type: application/json
{
"site": "1000",
"system": "AS1",
"type": "GOODS_RECEIPT",
"supplier": "Acme Company Ltd.",
"container": {
"type": "TOTE",
"lpn": "TOTE-001-001"
},
"traits": {
"deliveryNote": "DN-2025-000456"
},
"lines": [
{
"id": "1",
"item": "digital-camera",
"quantity": {
"amount": 3,
"unit": "PIECE"
},
"lotNumber": "XYZ24041508A",
"expiryDate": "2025-12-31"
}
]
}| Field | Meaning |
|---|---|
site, system | The site and the automation system into which the stock is put. Required. |
container | The container from which the items of the task come. Required. |
lines | The lines of the task. Required. Each line has an id that is unique in the task, an item and a quantity. |
lines[].container | Optional container in which the items of the line are placed for putaway. |
lotNumber, batchNumber, expiryDate | Optional lot, batch and expiry date of the item. |
name, type, supplier | Optional name, type and supplier name. |
traits | Optional free-form key and value pairs. Each create or update replaces them. |
The answer is 409 when the task cannot change any more: it is completed, or it is locked by a Rologi Flow process.
Priority
The task and each of its lines have the same pair of sort keys:
priorityTimestamp: the earlier time comes first. Rologi Flow rounds it to whole seconds.priority: the lower value comes first.0is the highest priority.
Missing values sort last. Putaway orders the lines of all activated carts together, by line priority first and then by task priority. To set the order by priority only, do not send priorityTimestamp.
Change the priority with PATCH, also when the task is in progress. The new priority then orders the remaining work.
PATCH https://rologi-flow.example.com/api/putaway-tasks/12345
Authorization: Bearer <token>
Content-Type: application/json
{
"priority": 0,
"reason": "Urgent customer order",
"lines": [
{
"id": "1",
"priority": 0
}
]
}- Only the lines in the request change. Other lines keep their values.
- The request always replaces the pair of the task. A field that you omit or set to null is cleared. The same applies to the pair of each line in the request.
reasonis optional. Rologi Flow keeps it in the audit trail of the task.- The answer is
400when a line identifier is unknown or is in the request more than once.
Cancel
Send DELETE with the task identifier. Rologi Flow never removes a putaway task. The request asks for its cancellation, and the operation is idempotent.
| Status | Meaning |
|---|---|
| 202 | The cancellation is accepted. The task is REVOKED until the work in progress is finished. |
| 204 | The task is canceled, or it does not exist. |
| 409 | The task cannot be canceled any more. The error type is TASK_COMPLETED or TASK_FAILED. |
Totes that are already put away stay valid, and a tote that is being put away is finished. The totes that are left go to the canceled goods area. Then the task becomes CANCELED.
To cancel one line, send DELETE /api/putaway-tasks/{id}/lines/{lineId}. The other lines continue. PutawayTaskFinished tells the outcome of the task.
Read
GET /api/putaway-tasks/{id} returns the task with its state and its lines. The answer is 404 when no such task exists. To read many tasks, see search and paging.
| Object | States |
|---|---|
| Task | CREATED, ACTIVATED, IN_PROGRESS, REVOKED, COMPLETED, CANCELED, FAILED |
| Line | CREATED, IN_PROGRESS, REVOKED, COMPLETED, CANCELED, FAILED |
Reference
Create or update, get, list, search, update priority, cancel a task, cancel a line. Events: putaway events.