Confirm Action
confirm-actionUse this only after the user clearly answers what a WebTwizz build is waiting on (its card shows "WebTwizz needs your OK"), such as running a command, deleting database data, a Stripe change or publishing. approve true goes ahead; false skips that step and the build carries on without it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | The job_id from the build card | |
| approve | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| name | Yes | ||
| plan | No | ||
| error | No | ||
| stage | No | ||
| steps | Yes | ||
| checks | No | ||
| job_id | Yes | ||
| latest | No | ||
| status | Yes | queued, starting, building, done, needs_input, failed or stopped | |
| choices | No | When the summary ends by offering numbered options: those options, for the user to pick one | |
| site_id | Yes | ||
| summary | No | ||
| live_url | No | ||
| open_url | Yes | ||
| question | No | ||
| compiling | No | The preview is still updating with the finished change | |
| follow_ups | Yes | Things the user still has to do in WebTwizz, like connecting a database or adding a key | |
| undo_guard | No | Pass as only_if_latest when undoing, so newer work is never lost | |
| preview_url | Yes | ||
| confirmation | No | Set while the build waits for the user to approve something; answer with confirm-action | |
| files_changed | Yes | ||
| preview_ready | Yes | Whether the draft preview is running right now | |
| undo_point_id | No | Pass to restore-version to undo this change; only set while nothing has changed since | |
| live_frame_url | No | ||
| elapsed_seconds | Yes |