Skip to content
gist.link ↗

createWorkflow

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

Create a workflow with its trigger and initial step chain. Authenticated org member.

automate:mutation:createWorkflow

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 {
createWorkflow(input: CreateWorkflowInput!): Workflow!
}
Argument Type Required Description
input CreateWorkflowInput! 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 CreateWorkflow($input: CreateWorkflowInput!) { createWorkflow(input: $input) { id uuid name created_at updated_at } }",
"variables": {
"input": {
"name": "Example",
"trigger": {
"connectorKey": "example",
"triggerKey": "example"
}
}
}
}
JSON