ProductionMu Mutation

createProductionReport

Topics: Jobs

Create a production report and any consumption rows. Requires productionReport:write.

Returns

CreateProductionReportPayload!

Arguments

The report to record, plus any consumption rows written in the same transaction. Vertical packages add further fields to this input; unknown fields are captured into the report's extensions blob.

Examples

Record Printing Press Run

mutation RecordPrintingPressRun($input: CreateProductionReportInput!) {
  createProductionReport(input: $input) {
    productionReport { id operationId goodCount totalPlanned countUnit runKind }
    errors { path message }
  }
}

Variables

{
  "input": {
    "name": "Cover press run — first report",
    "jobId": "job_0h248h248h848r248h248h248h",
    "componentId": "cmp_1248h248h288h848h248h248h2",
    "operationId": "opr_1k6csk6csk8csr6csk6csk6csk",
    "workCenterId": "wcr_248h248h248h288h248h248h24",
    "startedAt": "2026-11-03T08:00:00Z",
    "endedAt": "2026-11-03T09:30:00Z",
    "goodCount": 2500,
    "totalPlanned": 2500,
    "countUnit": "COUNT",
    "runKind": "PRODUCTION",
    "actualPrintingDurationSeconds": 3600
  }
}
Exact field SDL
"""
Create a production report and any consumption rows. Requires productionReport:write.
"""
createProductionReport(
  """
  The report to record, plus any consumption rows written in the same transaction. Vertical packages add further fields to this input; unknown fields are captured into the report's extensions blob.
  """
  input: CreateProductionReportInput!
): CreateProductionReportPayload! @topic(names: ["jobs"]) @topic_example(names: ["production.record-press-run"])

Declared on Mutation. Access is checked by the platform for each operation.