post
https://api.mitti.com/manufacturing/v1/scheduled_runs:batchUpsert
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.