ap_update_step
ap_update_stepUpdate an existing step's settings. Provide only the fields you want to change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| auth | No | Connection `externalId` from `ap_list_connections`. Pass the plain id, not a template. | |
| skip | No | Whether to skip this step during execution | |
| input | No | Input settings for the step (key-value pairs matching the action schema). Reference a prior step's output with {{stepName['output'].field}} (output is nested under ['output'], e.g. {{trigger['output'].body.email}}, {{send_email['output'].id}}). For a continue-on-failure step's error, use {{stepName['error'].message}}. | |
| flowId | Yes | The id of the flow | |
| stepName | Yes | The name of the step to update (e.g. "step_1"). Use ap_flow_structure to get valid values. | |
| loopItems | No | For LOOP steps: expression for the items to iterate over | |
| actionName | No | For PIECE steps: the action to perform. Use ap_research_pieces to get valid values. | |
| sourceCode | No | For CODE steps only: the JavaScript/TypeScript source code. Must export a `code` function: `export const code = async (inputs) => { ... }`. | |
| displayName | No | New display name for the step | |
| packageJson | No | For CODE steps only: package.json content as a JSON string for npm dependencies. Defaults to "{}". | |
| retryOnFailure | No | For CODE/PIECE steps: whether to retry this step on failure. | |
| continueOnFailure | No | For CODE/PIECE steps: set true on the step that can fail (the one whose failure you want to react to), NOT on the recovery step. The flow keeps running on failure and the step gains On success / On failure branches — add handler steps into them with ap_add_step using stepLocationRelativeToParent INSIDE_ON_SUCCESS_BRANCH / INSIDE_ON_FAILURE_BRANCH and parentStepName = this step. |