Update Form
Update an existing form. Requires forms-write.
Update Form
Update an existing form. You can modify any attribute that can be set when creating a form.Authentication & Scope
Requires a token with theforms-write ability.
Request
Path Parameters
Body Parameters
All fields from the Create Form endpoint may be supplied. However, the API validation requires you to include specific fields in every update request, even if you only want to change one optional field.Required Fields in Updates
These fields must always be included:Recommended Update Pattern
To safely update a form without accidentally losing properties:- Fetch the current form state using the Get Form endpoint
- Modify only the fields you want to change in the fetched response
- Send the complete updated form (including all required fields and properties) back to this endpoint
Automatically delete old submissions
Setsubmission_retention_value and submission_retention_unit together to permanently delete submissions after a retention period. The period is measured from each submission’s last update, and the cleanup runs hourly.
day, week, month, or year. Set both fields to null to disable automatic deletion.
Body Example
Example request updating title and visibility (note: all required fields must be included):Response
200 OK – Returns the updated Form object.
403 Forbidden – The token lacks forms-write or you don’t have permission.Authorizations
Personal Access Token
Path Parameters
Body
ID of the workspace that owns the form.
The title of the form.
The current visibility state of the form.
public, draft, closed Two-letter ISO language code.
default, simple, notion light, dark, auto centered, full sm, md, lg none, small, full Whether to hide the OpnForm branding.
Transparent background when form is embedded.
50200050Number of retention units before a submission is permanently deleted. Set this and submission_retention_unit to null to disable automatic deletion.
1 <= x <= 3650Calendar unit used by submission_retention_value. Both retention fields must be provided together.
day, week, month, year x >= 150recaptcha, hcaptcha An array of field and layout blocks that make up the form.
Response
Updated
The unique identifier for the form.
The URL-friendly slug for the form.
The title of the form.
The current visibility state of the form.
public, draft, closed Two-letter ISO language code.
default, simple, notion light, dark, auto centered, full sm, md, lg none, small, full Whether to hide the OpnForm branding.
Transparent background when form is embedded.
50200050Number of retention units before a submission is permanently deleted. Set this and submission_retention_unit to null to disable automatic deletion.
1 <= x <= 3650Calendar unit used by submission_retention_value. Both retention fields must be provided together.
day, week, month, year x >= 150recaptcha, hcaptcha An array of field and layout blocks that make up the form.