createScheduleScenario
Topics: Jobs
Create a new schedule scenario. Requires scheduleScenario:write permission.
Returns
UpsertScheduleScenarioPayload!Arguments
Attributes of the scenario to create. Its id is generated by the server.
Examples
Create Printing Schedule
mutation CreatePrintingSchedule($input: CreateScheduleScenarioInput!) {
createScheduleScenario(input: $input) {
scheduleScenario { id name status planningHorizonStart planningHorizonEnd }
errors { path message }
}
}Variables
{
"input": {
"name": "Brochure production — proposed week 45",
"status": "DRAFT",
"planningHorizonStart": "2026-11-02T06:00:00Z",
"planningHorizonEnd": "2026-11-07T18:00:00Z"
}
}Exact field SDL
"""
Create a new schedule scenario. Requires scheduleScenario:write permission.
"""
createScheduleScenario(
"""
Attributes of the scenario to create. Its id is generated by the server.
"""
input: CreateScheduleScenarioInput!
): UpsertScheduleScenarioPayload! @topic(names: ["jobs"]) @topic_example(names: ["production.create-schedule"])Declared on Mutation. Access is checked by the platform for each operation.