Skip to content
gist.link ↗

updateWorkflow

Mutation Automate API — POST https://automate.api.gist.link/graphql

Update a workflow. When steps is present (even []), it REPLACES the whole step chain. Authenticated org member.

automate:mutation:updateWorkflow

The calling IAM key must hold this permission (or a wildcard that covers it: automate:mutation:* or automate:*) and the access token must have been minted with audience=automate. See Permissions.

type Mutation {
updateWorkflow(id: String!, input: UpdateWorkflowInput!): Workflow!
}
Argument Type Required Description
id String! Yes —
input UpdateWorkflowInput! Yes —

Workflow! — see the Automate types reference.

Terminal window
curl https://automate.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation UpdateWorkflow($id: String!, $input: UpdateWorkflowInput!) { updateWorkflow(id: $id, input: $input) { id uuid name created_at updated_at } }",
"variables": {
"id": "example",
"input": {
"name": "Example",
"trigger": {
"connectorKey": "example",
"triggerKey": "example"
},
"enabled": true
}
}
}
JSON