Update a Rootr form (fields/targetDatabaseId/config)
rootr_update_formMerge-patch a form by replacing its fields array or unlinking its database; read the form first to retain field ids and keep past responses attributable.
Instructions
Merge-patch a Rootr (루터) FORM: if you pass fields, it REPLACES the whole fields array — call rootr_read_form first and resend fields you want to keep (with their existing ids) so past responses stay attributable. Pass targetDatabaseId: null to unlink the mirrored DATABASE. Fields are typed inputs shown to respondents: text | textarea | number | select | multi_select | checkbox | date; select/multi_select need options ({name,color}[]). Read the form first (rootr_read_form) before updating so you keep each field's id stable — response values are keyed by field id, so renaming/dropping an id orphans past responses' answers for that field.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | No | Emoji icon for the node | |
| config | No | Free-form form config object (e.g. publicSubmit mode) | |
| fields | No | COMPLETE fields array to set — omitted existing fields will be dropped | |
| formId | Yes | FORM node id | |
| targetDatabaseId | No | DATABASE node id to mirror responses into, or null to unlink |