Workflow nodes
Reroute a node connection
Reroute one existing node connection to another valid target node.
POST
Reroute a node connection
Use this endpoint to modify an existing node connection to another target. Send the source node in the URL path and the new target in the request body.
The source node must have exactly one outgoing connection. Branch and experiment branch nodes cannot be rerouted with this endpoint because they have multiple branch-specific outputs. The current target must still have another incoming connection after the reroute, and the new target must be valid for the source node. The workflow cannot be edited while in a
SENDING state.Authorizations
Path Parameters
Body
application/json
Reroute the source node's only outgoing connection to newTargetNodeId.
The workflow revision token returned by the latest workflow read or mutation. Older workflows may return null before their first revision-aware mutation; pass null back as expectedRevisionId in that case. If the token is stale, the API returns a 409 Conflict error.
Response
Node connection rerouted.
- Signup trigger
- Event trigger
- Contact property trigger
- Add-to-list trigger
- Blank trigger
- Audience filter node
- Timer node
- Send email node
- Exit node
- Branch node
- Experiment node
- Variant node
The updated source node, plus the latest workflow.
Reroute a node connection

