Skip to main content
inputCreateWorkflowStepInput

Fields

workflowId
ID!
required
type

The type of step: CONDITION or ACTION.

name
String

Optional name for the step.

payload
String!
required

JSON-encoded payload containing the action or condition configuration. See WorkflowStep.payload for the valid type values per step type and the note on non-portable, workspace-specific IDs.

transitions
[ID]!
required

Array of next step IDs. For ACTION: 1 element. For CONDITION: 2 elements (true, false). Use null for terminal/no branch.

positionX
Float

X position of this step on the canvas.

positionY
Float

Y position of this step on the canvas.