Insert workflow step
POST
Insert workflow step

Authorizations

Authorization
string
header
required

Voiceflow bearer token

Path Parameters

workflowID
string
required
blockID
string
required

Query Parameters

projectID
string
required

The ID of the project to operate on.

environmentAlias
string
required

The alias of the environment to operate on (e.g. main).

Body

afterStepID
string

Insert right after this step of the block. Send this or atStart.

atStart
enum<boolean>

Insert as the first step of the block. Send this or afterStepID.

Available options: true
step
object
required
expectedSteps
string[]
required

The block's step IDs exactly as your last read returned them. If the block changed, nothing is written.

acknowledgeRewire
boolean

Required when the insert makes the last step stop being last and that step has exits that would stop running: a Tool or Code fail or path link is cleared, and actions on such an exit are deleted. Also required when you append a step that has no next port, such as End or Go to block: the old last step's next link cannot move to it, so it is cleared.

Response

201 - application/json

Returns what was written, the block that holds the new step, the step itself, and the IDs the server created.

message
string
required

What was written.

blockID
string
required

The block that holds the step, or null for a step that no block lists.

step
object
required
portAction
object

Set when the step is an action on an exit: the step and port that run it, and its position.

ids
object

Each key you sent on the step or its branches, mapped to the ID the server created.

Links this write cleared because they would no longer run.

unresolvedReferences
object[]

References this write kept as literal text instead of binding, each with the reason. The write still succeeded.

Use the up and down arrow keys to select a result, Enter to open it, and Escape to close the search.