Set shift targets
Set the production target of existing shifts, for upcoming or past days. The body is a JSON array of up to 1,000 rows, so a whole plan (or a CSV export of one) fits in one call.
Each row names a shift by its machine (uuid or name), the date it starts on in the
company's timezone, and its title (for example Morning). Sending the same values again is
harmless: the target is overwritten, not added to.
Every row comes back with a status, and only updated rows changed anything:
updated: the shift's target is nowtargetQuantity.machineNotFound/ambiguousMachine: no machine, or more than one, matchesmachine.shiftNotFound/ambiguousShift: the machine has no shift, or more than one, with that title starting on that date.duplicateShift: another row in the same request points at the same shift, so neither was applied.
Targets are read live from the shift, so realtime and shift views show the new value right away. Nothing is recalculated: the target is not an input to OEE.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
items <= 1000Response Body
application/json
application/json
curl -X PUT "https://example.com/v1/shifts/targets" \ -H "Content-Type: application/json" \ -d '[ { "machine": {}, "date": "2026-10-12", "title": "Morning", "targetQuantity": 1200 } ]'[ { "machine": { "uuid": "0190c1c2-7a3e-7cc1-9b2f-1d2e3f4a5b6c", "name": "Line 1" }, "date": "2026-10-12", "title": "Morning", "targetQuantity": 1200, "status": "updated", "machineId": 12, "shiftId": 48213 }]Stops report POST
Return individual machine stops with their duration, cause and classification. This is the drill-down behind the downtime totals in the metrics report. `stopId` accepts the full comparison grammar, so a specific stop or a range of them can be pulled directly.
Assign operator by time POST
Assign an operator to the shift that machine `machineId` was running at `start`. Use it to record who ran a machine after the shift ended, for example a day later from a planning system. For a live shift at a floor terminal, `POST /v1/realtime/{machine_id}/operator` is the shorter call. The operator takes over at `start` and keeps the machine until the end of the shift, or until a later assignment. If nobody is assigned to the shift yet, the operator covers the whole shift. To record several operators in one shift, send them in chronological order: a `start` before the shift's latest operator change is rejected. Sending the same assignment again is harmless. Operator metrics for the shift are recalculated in the background. Errors: * `400`: no shift matches, or `start` is outside the shift, in the future, or before the shift's latest operator change. * `403`: the shift has production marked as reviewed, which locks it. * `404`: the operator does not exist in your company.