Docs
GraphQL referenceMutations

Create Schedule Automation

MUTATIONcreateScheduleAutomation(input: CreateScheduleAutomationInput!): ScheduleAutomationMutationOutput!

Access: Requires the schedule_automation:write permission.

Arguments

input*

Returns

  1. createScheduleAutomation
scheduleAutomation*
Example Request
mutation CreateScheduleAutomation($input: CreateScheduleAutomationInput!) {  createScheduleAutomation(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": {    "cronExpression": "string",    "defaultScheduleId": "1",    "name": "string",    "networkId": "1"  }}
Example Response
{  "data": {    "createScheduleAutomation": {      "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>"      }    }  }}