← API reference
Mutation / jobs

upsertScheduleAllocation

Create a schedule allocation, or overwrite an existing one when input.id is supplied (createdAt is preserved). Requires scheduleScenario:write permission.

Arguments

The allocation to create, or — when input.id is given — to overwrite.

Returns UpsertScheduleAllocationPayload!

Explore in a view

Production Floor
View exact SDL
"""
Create a schedule allocation, or overwrite an existing one when input.id is supplied (createdAt is preserved). Requires scheduleScenario:write permission.
"""
upsertScheduleAllocation(
  """The allocation to create, or — when input.id is given — to overwrite."""
  input: UpsertScheduleAllocationInput!
): UpsertScheduleAllocationPayload! @topic(names: ["jobs"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.