Docs
GraphQL referenceMutations

Toggle Schedule Automation

MUTATIONtoggleScheduleAutomation(input: ToggleScheduleAutomationInput!): ScheduleAutomationMutationOutput!

Access: Requires the schedule_automation:write permission.

Arguments

input*

Returns

  1. toggleScheduleAutomation
scheduleAutomation*
Example Request
mutation ToggleScheduleAutomation($input: ToggleScheduleAutomationInput!) {  toggleScheduleAutomation(input: $input) {    scheduleAutomation {      active      createdAt      cronDescription      cronExpression      defaultSchedule {        assignedTo        id        name      }      id      lastRunAt      name      network {        activeListeners        baseUrl        catchupEnabled        catchupPremium        code        id        imagesUrl        isPremium      }      nextRunAt    }  }}
Variables
{  "input": {    "active": true,    "id": "1"  }}
Example Response
{  "data": {    "toggleScheduleAutomation": {      "scheduleAutomation": {        "active": true,        "createdAt": "<DateTime>",        "cronDescription": "string",        "cronExpression": "string",        "defaultSchedule": {          "assignedTo": [            "<DayOfWeek>"          ],          "id": "1",          "name": "string"        },        "id": "1",        "lastRunAt": "<DateTime>",        "name": "string",        "network": {          "activeListeners": 10,          "baseUrl": "string",          "catchupEnabled": true,          "catchupPremium": true,          "code": "string",          "id": "1",          "imagesUrl": "string",          "isPremium": true        },        "nextRunAt": "<DateTime>"      }    }  }}