Create a workflow
Create a workflow with a draft.
Workflow builder. Included from the Jump Starter plan. See plans.
Without graph, the draft holds one trigger node, ready for
editWorkflow ops. Pass graph only to start from a complete graph. The
response carries the revision you need to edit.
Query parameters
user_idintegerresellers onlyReseller keys only: act as one of your clients by its user id. Omit it to act on your own account. How acting for a client works.
Body
namestringrequiredA non-empty name.
graphobjectA complete graph to start a workflow from, in the same shape getWorkflow
returns under draft. A workflow you read can be sent back as a new one.
It is built with the same checks as editWorkflow ops. Most callers skip it
and build with editWorkflow instead.
+ Show child fields (2)− Hide child fields
nodesobject[]required+ Show child fields (5)− Hide child fields
idstringrequiredLowercase letters, digits and underscores, starting with a letter. Later nodes read this node's output as {{ context.<id>.<field> }}.
typestringrequiredA node type from listWorkflowNodeTypes.
labelstringpositionobject+ Show child fields (2)− Hide child fields
xnumberynumberconfigobjectThe node's settings. The fields come from getWorkflowNodeType.
edgesobject[]required+ Show child fields (3)− Hide child fields
fromstringrequiredId of the node the edge starts at.
tostringrequiredId of the node the edge ends at.
handlestringThe output of the from node. Omit it, or send default, for a plain node's only output.
Was this page helpful?
