v4
latestOpenAPI 3.1.02026-07-3163216290.7 KBCreate a workflow node
Create a new default workflow node and return it with the latest workflow.
Choose where the node goes with insertMode: between places it between an existing fromNodeId -> toNodeId connection, and before places it before beforeNodeId.
New nodes start with default settings; update the node after creation to configure it. Branch nodes create their default paths too: BranchNode creates two AudienceFilter children, and ExperimentBranchNode creates two regular VariantNode children plus one control VariantNode. Public workflows can have up to 300 nodes. Generated children count toward that limit, so a normal create adds 1 node, BranchNode adds 3, and ExperimentBranchNode adds 4. To add a new branch or experiment branch, use the POST /v1/workflows/{workflowId}/nodes/{nodeId}/add-branch endpoint instead.
Request body
Response
Workflow node created.
Example response
{
"node": {
"createdChildNodes": [
{
"contactPropertyQuery": {
"key": "firstName"
}
}
]
},
"workflow": {
"id": "clw1a3b5c7d9e1f3g5h7i9j1",
"status": "Draft",
"name": "Welcome series",
"description": "Onboarding emails for new signups",
"mailingListId": "clm2k8j4h6g0f8d6s4a2b0z8",
"rootNodeId": "cln8p0q2r4s6t8u0v2w4x6z8",
"nodes": {
"cln8p0q2r4s6t8u0v2w4x6z8": {
"typeName": "SignupTrigger",
"nextNodeIds": [
"cln1a3b5c7d9e1f3g5h7i9j1"
]
},
"cln1a3b5c7d9e1f3g5h7i9j1": {
"typeName": "SendEmailAction",
"nextNodeIds": [],
"emailMessageId": "cle5f7g9h1i3j5k7l9m1n3p5",
"subject": "Welcome to Acme!"
}
}
}
}