ap_update_branch
ap_update_branchUpdate the conditions and/or name of an existing router branch. Does not affect the steps inside the branch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flowId | Yes | The id of the flow | |
| branchName | No | New display name for the branch | |
| conditions | No | New conditions array (outer array = OR groups, inner array = AND conditions). Replaces the existing conditions entirely. | |
| branchIndex | Yes | The index of the branch to update (0-based). Cannot update the fallback branch conditions. | |
| routerStepName | Yes | The name of the ROUTER step. Use ap_flow_structure to get valid values. |