Replace KoboToolbox Form Questions
kobo_update_formReplace the complete question list of an existing form. Removed questions are deleted and their collected answers become orphaned, no longer appearing in exports.
Instructions
Replace the ENTIRE question list of an existing form with a new one.
Prefer kobo_patch_form for targeted edits (relabelling, adding choices, changing skip logic) — it leaves the rest of the form untouched and cannot accidentally drop questions.
Args:
uid (string): asset uid of the form to update
questions (array): FULL replacement list — any question left out is REMOVED from the form
redeploy (boolean, default true): redeploy so the new version goes live
confirm_replace (boolean): must be true when the form already has submissions
Notes:
Existing submissions are preserved, but answers to removed questions become orphaned and stop appearing in exports.
The question list is validated locally before anything is sent to Kobo.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | Asset uid of the form to update (from kobo_list_forms) | |
| redeploy | No | If true, redeploy the form after updating so the new version goes live | |
| questions | Yes | FULL replacement list of questions — any question left out is deleted from the form. | |
| confirm_replace | No | Required (true) when the form already has submissions: replacing the structure can orphan collected data. |