ProductionMu Mutation

createScheduleAllocation

Topics: Jobs

Create a new schedule allocation. Requires scheduleScenario:write permission.

Returns

UpsertScheduleAllocationPayload!

Arguments

The allocation to create. Its id is generated server-side.

Examples

Allocate Printing Press

mutation AllocatePrintingPress($input: CreateScheduleAllocationInput!) {
  createScheduleAllocation(input: $input) {
    scheduleAllocation { id scheduleScenarioId operationId workCenterId startAt endAt }
    errors { path message }
  }
}

Variables

{
  "input": {
    "scheduleScenarioId": "sch_2nanananan8naranananananan",
    "workCenterId": "wcr_248h248h248h288h248h248h24",
    "operationId": "opr_1k6csk6csk8csr6csk6csk6csk",
    "startAt": "2026-11-03T08:00:00Z",
    "endAt": "2026-11-03T10:00:00Z"
  }
}
Exact field SDL
"""
Create a new schedule allocation. Requires scheduleScenario:write permission.
"""
createScheduleAllocation(
  """The allocation to create. Its id is generated server-side."""
  input: CreateScheduleAllocationInput!
): UpsertScheduleAllocationPayload! @topic(names: ["jobs"]) @topic_example(names: ["production.allocate-press"])

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