thincms_update_form
Update an existing form or survey by modifying only the fields you specify. For large HTML content, use htmlContentFile instead.
Instructions
Update an existing form or survey. Only provided fields are changed. For large HTML content (>10KB), use htmlContentFile instead of htmlContent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Form ID (required) | |
| name | No | Form name | |
| slug | No | URL slug | |
| fields | No | Field definitions | |
| siteId | No | Override the active site for this single call. Pass to target a specific tenant without mutating shared active-site state — the right pattern when running concurrent agent sessions managing different tenants. Must match a siteId from your THINCMS_SITES config (use thincms_list_sites to inspect). When omitted, the call uses the active site set by thincms_switch_site. | |
| enabled | No | Enable/disable form | |
| renderMode | No | Render mode | |
| webhookUrl | No | Webhook URL | |
| description | No | Form description | |
| htmlContent | No | Custom HTML content | |
| successMessage | No | Success message | |
| webhookUrlTest | No | Test webhook URL | |
| htmlContentFile | No | Local file path containing HTML content — use this instead of htmlContent for large surveys (>10KB). | |
| webhookTestMode | No | Enable test mode | |
| confirmProductionWrite | No | Acknowledge that this call may write to a configured production site (THINCMS_PRODUCTION_SITE_IDS env var). Required for any POST/PUT/PATCH/DELETE against a production-listed site; ignored otherwise. The error message lists which site triggered the requirement and recommends thincms_snapshot before any production write. |