Create or update scheduled production runs

A work order whose run has already started is scheduled again as a new
run, so a work order can be produced more than once.

Schedule up to 500 production runs. Each run is keyed by its work order at the production line's site. A work order that is scheduled and not started is updated. Otherwise a new scheduled run is created.

Requirements

Partial updates. When a run exists, a field that you leave out keeps its value. To write only some fields, or to clear target_quantity or planned_duration_minutes, list them in fields_to_write:

{
  "scheduled_runs": [
    {
      "production_line_external_id": "LINE-1",
      "work_order_number": "WO-1001",
      "product_sku_code": "SKU-100",
      "planned_start_time": "2026-12-01T06:00:00Z",
      "target_quantity": 250,
      "fields_to_write": ["SCHEDULED_RUN_FIELD_TARGET_QUANTITY"]
    }
  ]
}

Duplicates. If one work order appears more than once at a site in a batch, every item that holds it fails with ITEM_ERROR_CODE_DUPLICATE_WORK_ORDER.

Body Params
scheduled_runs
array of objects
required

The runs to schedule. A work order that appears more than once at one
site, ignoring case, fails every item that holds it with
ITEM_ERROR_CODE_DUPLICATE_WORK_ORDER.

scheduled_runs*
Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json