automation Workflow Create
Requires access scope. Also: The app must have write access to automations and act on behalf of a user.
Creates a draft automation from a JSON configuration.
Input errors are returned in and nothing is saved. A saved draft can still have
, such as a missing action or an incomplete configuration field; fix those before activating.
Arguments
- configuration (JSON!)
- name (String!)
- note (String)
- tags ([String!])
- Anchor to configurationconfiguration•JSON!required
The JSON configuration used to create the automation, including
__metadata.versionset to0.1androot. Define its logic inroot.steps,root.links, and. Supply name, tags, and note as separate arguments;,root.tags, androot.noteare rejected. See the workflow configuration JSON Schema.- Anchor to namename•String!required
The automation name, shared by all versions. Null and blank names are rejected.
- Anchor to notenote•String
The note for the new draft, separate from configuration and step notes. Omit or use null to leave it unset.
- •[String!]
The automation tags, shared by all versions. Omit or use null to create the automation with no tags.
- automationWorkflow (AutomationWorkflow)
- userErrors ([AutomationWorkflowUserError!]!)
- Anchor to automationWorkflowautomation•Automation
Workflow Workflow The saved draft automation. Returns
nullif an error is raised.Show fields
- Anchor to userErrorsuser•[Automation
Errors Workflow User Error!]! non-null The list of errors that occurred from executing the mutation.
Show fields