UpdateForm
Partial update for a form. Every field is optional, only supplied properties change. Supplying fields replaces the entire field array; pass null to description/slug to clear them. To edit one field without resending the whole array, use the /v1/forms/{id}/fields sub-resource instead.
- descriptionType: string | nullmax length:2000
Optional longer description shown beneath the title on the public form page.
- fieldsType: array · Field[] …100
Ordered list of a form’s fields (max 100). Field
keys must be unique within the form. The order here is the order fields render on the public page.A single form field. The
typediscriminator selects which extra constraint props are valid, e.g.optionsforselect/multiselect/radio,min/maxfornumber/date,minLength/maxLengthfortext/textarea.A single form field. The
typediscriminator selects which extra constraint props are valid, e.g.optionsforselect/multiselect/radio,min/maxfornumber/date,minLength/maxLengthfortext/textarea.- keyType: stringmin length:1max length:64
Pattern: ^[a-zA-Z][a-zA-Z0-9_]*$requiredStable machine name for the field. Used verbatim as the property name in a submission body, so it must start with a letter and contain only letters, digits, and underscores. Unique within a form and safe to keep constant across edits.
- labelType: stringmin length:1max length:200required
Human-readable label rendered above the input on the public form page.
- typeenumconst:textrequired
Single-line free text input.
values- text
- descriptionType: stringmax length:1000
Optional helper text shown beneath the input to guide the respondent.
- maxType: integer
Length greater than:0Maximum number of characters allowed.
- minType: integer
Length min:0Minimum number of characters allowed.
- patternType: stringmax length:500
Optional JavaScript-flavoured regular expression the value must match in full.
- placeholderType: stringmax length:200
Optional placeholder text shown inside an empty input.
- requiredType: boolean
Whether a value must be supplied. Required fields are re-validated server-side on every submission regardless of client-side checks.
- slugType: string | nullmin length:2max length:64
Pattern: ^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$Optional human-friendly URL segment for the public form (
/f/{slug}). Lowercase alphanumeric with dashes; must be unique per owner. The form’sidalways works as a URL even without a slug. - statusType: string enum
Lifecycle state.
draftforms are private (not publicly viewable or submittable);publishedforms accept public submissions;closedforms are viewable but reject new submissions.values- draft
- published
- closed
- titleType: stringmin length:1max length:200
Form title, shown as the heading on the public form page.