Update form configuration. Only provide the fields you want to change.
| Name | Type | Required | Validation | Description |
|---|---|---|---|---|
formId |
string |
Yes | -- | Form ID (UUID) |
name |
string |
No | Min 2, max 120 chars | New form display name |
allowedOrigins |
string[] |
No | -- | New allowed origins list (replaces existing) |
isEnabled |
boolean |
No | -- | Enable or disable the form |
If no fields are provided:
| Error | Cause |
|---|---|
Form not found. |
Invalid form ID or form belongs to a different organization |
No updates provided. |
Called without any optional fields |
401 Unauthorized |
Invalid or expired secret key |
| Zod validation error | name too short or too long |
"Disable my contact form and restrict it to only accept submissions from https://newsite.com."
CLI equivalent: npx formdata-dev forms update <formId> (interactive with defaults pre-filled).