Skip to main content
Anchor to automationWorkflowUpdate

automationWorkflowUpdate

mutation

Requires write_automations access scope. Also: The app must have write access to automations and act on behalf of a user.

Updates an automation's name, tags, note, or configuration. Supply at least one editable field. Omitted fields keep their existing values.

Replacing the configuration edits the latest draft in place, or creates a draft if none exists. Any active version continues running with its existing configuration. Changes to the name, tags, or note don't create a draft.

Input errors are returned in userErrors and nothing is saved. A saved version can still have validationErrors; fix those before activating it.

•JSON

The full replacement JSON configuration, including __metadata.version and root. Replaces the steps, links, and custom fields (root.patched_fields). Supply name, tags, and note as separate arguments; root.workflow_name, root.tags, and root.note are rejected. Omit to leave the configuration unchanged. Null is rejected. See the workflow configuration JSON Schema.

•ID!
required

The ID of the automation to update.

•String

The new automation name, shared by all versions. Omit to leave it unchanged. Null and blank names are rejected.

•String

The note for the version being updated. Omit to leave it unchanged; use null to clear it.

•[String!]

The replacement tags, shared by all versions. Omit or use null to leave them unchanged; use an empty list to clear them.

•String!
required

The version this edit is based on. Use the latest draft, or the most recently published version when no draft exists. A different version returns OUTDATED_WORKFLOW. Edits within the same draft and changes to name, tags, or note keep this identifier, so the check can't detect those edits.


Was this section helpful?

Anchor to AutomationWorkflowUpdatePayload returnsAutomationWorkflowUpdatePayload returns

•AutomationWorkflow

The saved automation version. Replacing the configuration returns a draft. Returns null if an error is raised.

Show fields
•[AutomationWorkflowUserError!]!
non-null

The list of errors that occurred from executing the mutation.

Show fields

Was this section helpful?