Update a Smart Form
update_formUpdate a Smart Form's configuration — the same fields the form editor saves. Pass form (id or slug) plus only the fields to change. fields replaces the whole field list and must include one field named "email" of type "email". success_mode: "booking" needs an event_type_id from list_events (the booking step's hours and duration live on that event). Returns the updated form.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| form | Yes | Form id or slug to update | |
| name | No | Internal form name | |
| slug | No | Public slug (a-z, 0-9, dashes); the embed snippet uses it | |
| title | No | Heading shown on the widget | |
| fields | No | The full field list, in order | |
| subtitle | No | Muted line under the title | |
| is_active | No | Published: true publishes what the form holds after this update (as publish_a_form does); false unpublishes it | |
| consent_md | No | Consent / fine print, markdown (links allowed) | |
| show_title | No | ||
| create_deal | No | Also open a deal on the default pipeline | |
| redirect_url | No | http(s) URL (success_mode redirect) | |
| submit_label | No | Submit button text | |
| success_mode | No | ||
| booking_intro | No | ||
| event_type_id | No | Event to book after submit (success_mode booking) | |
| notify_emails | No | Who gets the new-submission email | |
| show_subtitle | No | ||
| captcha_enabled | No | ||
| consent_enabled | No | ||
| success_message | No | Thank-you text (success_mode message) | |
| consent_position | No | Relative to the submit button | |
| booking_preheader | No | ||
| confirmation_body | No | Plain text; merge tags like {{name}} allowed | |
| notification_intro | No | ||
| confirmation_enabled | No | Email the submitter a confirmation | |
| confirmation_subject | No | ||
| confirmation_preheader | No | ||
| notification_preheader | No |