Add Workflow Step
Add a step to the workflow's draft. Changes apply to the draft only; publish to make them live. Send the revision you last read in If-Match; the response's meta.revision is the new one.
Path
The workflow's id.
Headers
Required. The revision you last read: the revision from its read (Get Workflow Definition for a workflow, Get Analytics Page Definition for an Analytics page, Get Analytics Data Source Table for a fixed source's table), or meta.revision from your last change to it. The ETag header of either answer is the same value, ready to send back. The change applies only if nobody changed it since: otherwise it answers 412 with the current revision in error.details.revision. Send it as a strong entity tag ("r_..."): a weak one (W/"...") never matches and answers 412. Without it the request answers 428.
Optional. The id of the organization to act in. Leave it out to act in the API key's own organization. A key can also act in its child organizations, and, with "Use this key across all of your organizations" on, in every organization its creator can open in the app. List them with GET /v2/companies. Every response's X-Company-Id header names the organization it acted in. See Organizations.
Body
The app id or slug, from List Universal Apps.
The app id or slug, from List Universal Apps (includeBuiltins=true for If, Loop, Map and the other built-ins).
latest, or a version number.
latest (the default) pins the current published version. A version number pins that version.
The action id or slug from List Universal Actions.
The action id or slug, from List Universal Actions. Built-ins take none. Left out, the step is added without an action, as in the editor.
The step's display name.
The step's display name. Left out, it is named the way the editor names it.
Where the step goes: { parentStepId, slot, afterStepId }.
Where the step goes. Left out: last at the top level.
parentStepIdstringThe loop, folder, batch step or If/Else the step goes inside. null or left out: the top level.
slotstringsteps at the top level; body inside a loop, folder or batch step; then or else inside an If/Else. Defaults to steps at the top level.
stepsThe top level of the workflow.bodyInside a loop, a folder, or a step that pages in batches: the steps that run for each item or page.thenThe If/Else lane that runs when its conditions are true.elseThe If/Else lane that runs otherwise.
afterStepIdstringThe step in that slot to follow. null puts the step first; left out puts it last.
Response fields
idstringThe step's id. Stable across edits; never positional.
numbernumberThe number the editor shows for this step, in execution order. Null for a folder, which the editor does not number.
namestringThe step's display name.
appSlugstringThe app the step runs, or the built-in step type (iterate, ifElse, map, ...).
appVersionstringThe app version the step is pinned to. For a built-in step (If, Loop, Map, ...), the version of the built-in app it was added with, "0" or "0.0.1" (some older ones hold "draft" or null); it does not change what the step does.
actionIdstringThe app action the step runs. Null for a built-in step type.
functionIdstringThe function this step calls, for a function call step.
parentStepIdstringThe step this one sits inside (a loop, group, folder or if/else). Null at the top level.
slotstringWhere the step sits in its parent: steps (the top level), body (a loop, group or folder), then or else (an if/else lane).
stepsbodythenelse
depthnumberHow deeply the step is nested. 0 at the top level.
isDisabledbooleanTrue when the step is turned off and runs skip it.
isConfiguredbooleanWhether the step passed the editor's validation (required values set, connection chosen). Null when it was never validated.