Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Production Runs

Get Production Runs

get

Returns a list of all production runs in your organization.

Authorizations
AuthorizationstringRequired
Query parameters
cursorstringOptional
limitinteger · min: 1 · max: 1000Optional

Caps the page size. Defaults to 1000, which is also the maximum; a value below 1 or above 1000 is rejected.

Default: 1000
machinestring · uuid[] · max: 50 · nullableOptional

If not set, production runs for all machines will be considered.

product-external-idstring · nullableOptional

If not set, all products will be considered.

Example: 301292
productstring · uuid · nullableOptional

If not set, all products will be considered.

Example: 4646d168-a98b-447e-834a-d36dd1f33eb4
production-order-external-idstring · nullableOptional

If not set, all production orders will be considered.

Example: FA1
startstring · date-time · nullableOptional

Only production runs being executed starting at start will be returned — matched against start/end for a run that has started, and against planned_start/planned_end for a planned one. If not set, no lower time bound will be assumed.

Example: 2023-07-19T19:39:46.735269+02:00
endstring · date-time · nullableOptional

Only production runs being executed up to end will be returned — matched the same way start is. If not set, no upper time bound will be assumed.

uuidstring · uuid[] · max: 50 · nullableOptional

If not set, production runs for all UUIDs will be considered.

qstring · nullableOptional

Filter production runs based on a partial match of the external id of the production order or product. Use product-external-id: or production-order-external-id: to limit the search to the respective resource.

Example: 301292Pattern: ^(?:product-external-id:)(?:.*)|^(?:production-order-external-id:)(?:.*)|^(?:.+)
order-bystring · enumOptional

Field the production runs are ordered by, descending when prefixed with -. start orders by the run's start, falling back to its planned start for a run that has none, so planned and started runs interleave into one timeline. end orders by the run's end; runs with no end — running or planned — sort first when descending, last when ascending. maximum_run_speed orders by the run's maximum run speed; runs without one sort the same way.

Default: -startPossible values:
Responses
200

Successful Response

application/json
get/v2/production-runs
GET /api/v2/production-runs HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
  "data": [
    {
      "uuid": "123e4567-e89b-12d3-a456-426614174000",
      "machine": "123e4567-e89b-12d3-a456-426614174000",
      "production_order": "FA1234",
      "product": "123e4567-e89b-12d3-a456-426614174000",
      "state": "text",
      "planned_start": "2026-01-01T00:00:00.000Z",
      "planned_end": "2026-01-01T00:00:00.000Z",
      "average_throughput": 1,
      "quantity_total": {
        "unit": "text",
        "value": 1
      },
      "quantity_scrap": {
        "unit": "text",
        "value": 1
      },
      "quantity_yield": {
        "unit": "text",
        "value": 1
      },
      "quantity_total_booked": {
        "unit": "text",
        "value": 1
      },
      "quantity_scrap_booked": {
        "unit": "text",
        "value": 1
      },
      "quantity_yield_booked": {
        "unit": "text",
        "value": 1
      },
      "availability": {
        "score": 1,
        "time_loss": 1
      },
      "performance": {
        "score": 1,
        "time_loss": 1
      },
      "quality": {
        "score": 1,
        "time_loss": 1
      },
      "productivity": {
        "score": 1,
        "time_loss": 1
      },
      "maximum_run_speed": {
        "value": 1,
        "observation_period_start": "2026-01-01T00:00:00.000Z",
        "observation_period_end": "2026-01-01T00:00:00.000Z",
        "unit": "text"
      },
      "data_quality": {
        "data_coverage": 1,
        "overlap_percentage": 1,
        "overlap_time": 1
      },
      "attributes": {
        "ANY_ADDITIONAL_PROPERTY": 1
      },
      "managed_by": {
        "type": "text"
      },
      "start": null,
      "end": null
    }
  ],
  "metadata": {
    "next_cursor": "text"
  }
}
Experimental

Create Production Run

post

Book a production run. Runs sharing a production_order have to name the same machine and the same product; one that disagrees is rejected. Machines whose production data an external system maintains are refused: that system's next synchronization would remove the run again.

Authorizations
AuthorizationstringRequired
Body
machinestring · uuidRequired

The UUID of the machine the production run was executed on.

productstring · uuidRequired

The UUID of the product that was produced. The product has to exist; create it through /products first.

production_orderstring · min: 1Required

The identifier of the production order this run belongs to, as your ERP knows it. Runs sharing an identifier have to name the same machine and the same product.

Example: FA1234
startstring · date-time · nullableOptional

The start of the production run in ISO8601 format with timezone info. Omitted (or null) books a run that is only planned so far. Must not be in the future — use planned_start for that.

endstring · date-time · nullableOptional

The end of the production run in ISO8601 format with timezone info. null books a run that is still being executed. Requires start. Must not be in the future — use planned_end for that.

planned_startstring · date-time · nullableOptional

The scheduled start of the production run in ISO8601 format with timezone info.

planned_endstring · date-time · nullableOptional

The scheduled end of the production run in ISO8601 format with timezone info. Requires planned_start.

quantity_total_bookednumber · nullableOptional

The total quantity produced, in the machine's quantity unit — a plain number, as the unit is the machine's to state.

quantity_scrap_bookednumber · nullableOptional

The quantity produced that doesn't meet quality criteria, in the machine's quantity unit.

quantity_yield_bookednumber · nullableOptional

The quantity produced that can be sold, in the machine's quantity unit.

Responses
201

Successful Response

application/json
or
or
post/v2/production-runs
POST /api/v2/production-runs HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 357

{
  "machine": "123e4567-e89b-12d3-a456-426614174000",
  "product": "123e4567-e89b-12d3-a456-426614174000",
  "production_order": "FA1234",
  "start": "2026-01-01T00:00:00.000Z",
  "end": "2026-01-01T00:00:00.000Z",
  "planned_start": "2026-01-01T00:00:00.000Z",
  "planned_end": "2026-01-01T00:00:00.000Z",
  "quantity_total_booked": 1,
  "quantity_scrap_booked": 1,
  "quantity_yield_booked": 1
}
{
  "uuid": "123e4567-e89b-12d3-a456-426614174000",
  "machine": "123e4567-e89b-12d3-a456-426614174000",
  "production_order": "FA1234",
  "product": "123e4567-e89b-12d3-a456-426614174000",
  "state": "text",
  "planned_start": "2026-01-01T00:00:00.000Z",
  "planned_end": "2026-01-01T00:00:00.000Z",
  "average_throughput": 1,
  "quantity_total": {
    "unit": "text",
    "value": 1
  },
  "quantity_scrap": {
    "unit": "text",
    "value": 1
  },
  "quantity_yield": {
    "unit": "text",
    "value": 1
  },
  "quantity_total_booked": {
    "unit": "text",
    "value": 1
  },
  "quantity_scrap_booked": {
    "unit": "text",
    "value": 1
  },
  "quantity_yield_booked": {
    "unit": "text",
    "value": 1
  },
  "availability": {
    "score": 1,
    "time_loss": 1
  },
  "performance": {
    "score": 1,
    "time_loss": 1
  },
  "quality": {
    "score": 1,
    "time_loss": 1
  },
  "productivity": {
    "score": 1,
    "time_loss": 1
  },
  "maximum_run_speed": {
    "value": 1,
    "observation_period_start": "2026-01-01T00:00:00.000Z",
    "observation_period_end": "2026-01-01T00:00:00.000Z",
    "unit": "text"
  },
  "data_quality": {
    "data_coverage": 1,
    "overlap_percentage": 1,
    "overlap_time": 1
  },
  "attributes": {
    "ANY_ADDITIONAL_PROPERTY": 1
  },
  "managed_by": {
    "type": "text"
  },
  "start": null,
  "end": null
}

Get Production Run

get

Returns details for a specific production run in any state, regardless of the state filter a listing would need to see it.

Authorizations
AuthorizationstringRequired
Path parameters
uuidstring · uuidRequired
Responses
200

Successful Response

application/json
or
or
get/v2/production-runs/{uuid}
GET /api/v2/production-runs/{uuid} HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
  "uuid": "123e4567-e89b-12d3-a456-426614174000",
  "machine": "123e4567-e89b-12d3-a456-426614174000",
  "production_order": "FA1234",
  "product": "123e4567-e89b-12d3-a456-426614174000",
  "state": "text",
  "planned_start": "2026-01-01T00:00:00.000Z",
  "planned_end": "2026-01-01T00:00:00.000Z",
  "average_throughput": 1,
  "quantity_total": {
    "unit": "text",
    "value": 1
  },
  "quantity_scrap": {
    "unit": "text",
    "value": 1
  },
  "quantity_yield": {
    "unit": "text",
    "value": 1
  },
  "quantity_total_booked": {
    "unit": "text",
    "value": 1
  },
  "quantity_scrap_booked": {
    "unit": "text",
    "value": 1
  },
  "quantity_yield_booked": {
    "unit": "text",
    "value": 1
  },
  "availability": {
    "score": 1,
    "time_loss": 1
  },
  "performance": {
    "score": 1,
    "time_loss": 1
  },
  "quality": {
    "score": 1,
    "time_loss": 1
  },
  "productivity": {
    "score": 1,
    "time_loss": 1
  },
  "maximum_run_speed": {
    "value": 1,
    "observation_period_start": "2026-01-01T00:00:00.000Z",
    "observation_period_end": "2026-01-01T00:00:00.000Z",
    "unit": "text"
  },
  "data_quality": {
    "data_coverage": 1,
    "overlap_percentage": 1,
    "overlap_time": 1
  },
  "attributes": {
    "ANY_ADDITIONAL_PROPERTY": 1
  },
  "managed_by": {
    "type": "text"
  },
  "start": null,
  "end": null
}
Experimental

Delete Production Run

delete

Delete a production run, along with the maximum run speed and the productivity metrics derived from it. Machines whose production data an external system maintains are refused: that system's next synchronization would recreate the run, or has already dropped it.

Authorizations
AuthorizationstringRequired
Path parameters
uuidstring · uuidRequired
Responses
204

Successful Response

No content

delete/v2/production-runs/{uuid}
DELETE /api/v2/production-runs/{uuid} HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*

No content

Experimental

Update Production Run

patch

Update a production run. An omitted field is left unchanged; an explicit null clears one that can be empty. The update is judged as a whole: the run it results in has to satisfy everything a booking does, and a change that would break that is rejected. Clearing end reopens a finished run, clearing start turns it back into a planned one; either drops the metrics and maximum run speed computed for it, which only a finished run has. Machines whose production data an external system maintains are refused: that system's next synchronization would overwrite the change.

Authorizations
AuthorizationstringRequired
Path parameters
uuidstring · uuidRequired
Body
machinestring · uuidOptional
productstring · uuidOptional
production_orderstring · min: 1Optional
startstring · date-time · nullableOptional
endstring · date-time · nullableOptional
planned_startstring · date-time · nullableOptional
planned_endstring · date-time · nullableOptional
quantity_total_bookednumber · nullableOptional
quantity_scrap_bookednumber · nullableOptional
quantity_yield_bookednumber · nullableOptional
Responses
200

Successful Response

application/json
or
or
patch/v2/production-runs/{uuid}
PATCH /api/v2/production-runs/{uuid} HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 355

{
  "machine": "123e4567-e89b-12d3-a456-426614174000",
  "product": "123e4567-e89b-12d3-a456-426614174000",
  "production_order": "text",
  "start": "2026-01-01T00:00:00.000Z",
  "end": "2026-01-01T00:00:00.000Z",
  "planned_start": "2026-01-01T00:00:00.000Z",
  "planned_end": "2026-01-01T00:00:00.000Z",
  "quantity_total_booked": 1,
  "quantity_scrap_booked": 1,
  "quantity_yield_booked": 1
}
{
  "uuid": "123e4567-e89b-12d3-a456-426614174000",
  "machine": "123e4567-e89b-12d3-a456-426614174000",
  "production_order": "FA1234",
  "product": "123e4567-e89b-12d3-a456-426614174000",
  "state": "text",
  "planned_start": "2026-01-01T00:00:00.000Z",
  "planned_end": "2026-01-01T00:00:00.000Z",
  "average_throughput": 1,
  "quantity_total": {
    "unit": "text",
    "value": 1
  },
  "quantity_scrap": {
    "unit": "text",
    "value": 1
  },
  "quantity_yield": {
    "unit": "text",
    "value": 1
  },
  "quantity_total_booked": {
    "unit": "text",
    "value": 1
  },
  "quantity_scrap_booked": {
    "unit": "text",
    "value": 1
  },
  "quantity_yield_booked": {
    "unit": "text",
    "value": 1
  },
  "availability": {
    "score": 1,
    "time_loss": 1
  },
  "performance": {
    "score": 1,
    "time_loss": 1
  },
  "quality": {
    "score": 1,
    "time_loss": 1
  },
  "productivity": {
    "score": 1,
    "time_loss": 1
  },
  "maximum_run_speed": {
    "value": 1,
    "observation_period_start": "2026-01-01T00:00:00.000Z",
    "observation_period_end": "2026-01-01T00:00:00.000Z",
    "unit": "text"
  },
  "data_quality": {
    "data_coverage": 1,
    "overlap_percentage": 1,
    "overlap_time": 1
  },
  "attributes": {
    "ANY_ADDITIONAL_PROPERTY": 1
  },
  "managed_by": {
    "type": "text"
  },
  "start": null,
  "end": null
}

Last updated