Edit a workflow draft
Change the draft with a list of ops.
Workflow builder. Included from the Jump Starter plan. See plans.
Ops add, update, move or delete nodes, and connect or disconnect them. They
apply all together or not at all. Send the revision from your last read.
On 409 revision_conflict, read the workflow again and retry.
Secrets read back as ********. Send them back unchanged to keep the stored
value. This edits the draft only. Use publishWorkflow to make it live.
Path parameters
workflow_idintegerrequiredId of the workflow.
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
revisionstringrequiredThe draft.revision from your last getWorkflow or edit.
opsobject[]required+ Show child fields (10)− Hide child fields
openumrequiredOne of: add_nodeupdate_nodemove_nodedelete_nodeconnectdisconnect
idstringNode id. For add_node, lowercase letters, digits and underscores, starting with a letter. It must be new.
typestringadd_node: a node type from listWorkflowNodeTypes.
labelstringadd_node, update_node: the name shown on the canvas.
configobjectadd_node, update_node: the node's settings. The fields come from
getWorkflowNodeType. Send a secret back as ******** to keep the
stored value.
afterstringadd_node: id of the node to connect the new node to.
handlestringadd_node, connect, disconnect: the output of the source node. Omit for the default output.
positionobjectadd_node, move_node: canvas position. add_node places the node for you if you omit it.
+ Show child fields (2)− Hide child fields
xnumberynumberfromstringconnect, disconnect: id of the node the edge starts at.
tostringconnect, disconnect: id of the node the edge ends at.
namestringRename the workflow.
Was this page helpful?
