← API reference
Mutation / jobs

upsertScheduleScenario

Create a schedule scenario, or fully replace an existing one when input.id is given. Rejected when the target scenario is locked. Requires scheduleScenario:write permission.

Arguments

Full scenario payload. Include id to overwrite an existing scenario, omit it to create one.

Returns UpsertScheduleScenarioPayload!

Explore in a view

Production Floor
View exact SDL
"""
Create a schedule scenario, or fully replace an existing one when input.id is given. Rejected when the target scenario is locked. Requires scheduleScenario:write permission.
"""
upsertScheduleScenario(
  """
  Full scenario payload. Include id to overwrite an existing scenario, omit it to create one.
  """
  input: UpsertScheduleScenarioInput!
): UpsertScheduleScenarioPayload! @topic(names: ["jobs"])

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