Use the workflowAutomationCreateSchedule mutation to create a schedule for a workflow definition.
Tip
The number of schedules and the minimum duration for a given schedule are defined at Workflow System Limits.
Input parameters
The following parameters are available for this API.
Parameter | Data type | Description |
|---|---|---|
| Object | (Required) The account scope. Contains |
| Object | (Required) The workflow definition to schedule. Contains |
| String | (Required) Cron expression defining the schedule frequency (e.g., |
| String | (Required) Timezone for the schedule (e.g., |
| Object | (Optional) Optional configuration. Contains |
| [EntityTagInput] | (Optional) Tags to apply to the schedule. Each tag requires a |
logLevel option
The logLevel option controls the amount of logging information generated during workflow execution.
NONE(default): Generates no log output.INFO: Outputs step-level information.DEBUG: Adds an attribute to the step started logs with all the action step inputs, using the formatworkflowAutomation.inputs.<inputName>: <inputValue>.TRACE: In addition toDEBUGoutput, adds an attribute to the step started logs with all the action step outputs, using the formatworkflowAutomation.outputs.<outputName>: <outputValue>.
Sample request
Use the Query Builder to create and edit a workflow. See NerdGraph API explorer.
mutation { workflowAutomationCreateSchedule( scope: { id: "12345678", type: ACCOUNT } definition: { name: "healthyHeartbeat", version: 1 } cronExpression: "0 0 * * *" timezone: "Asia/Kolkata" options: { logLevel: DEBUG } tags: [{ key: "environment", values: ["production"] }] ) { scheduleId }}