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
Parameter | Type | Description |
---|---|---|
id | number | Numeric ID of the form to edit |
Body Parameters (partial)
All fields from the Create Form endpoint may be supplied. Only the fields you include will be updated; omitting a field leaves its current value unchanged. Important:- Passing a new
slug
will regenerate the form URL (self-hosted only). - The
workspace_id
can not be changed via this endpoint—use/open/forms/{id}/workspace/{workspace_id}
instead.
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
application/json
ID of the workspace that owns the form.
The title of the form.
The current visibility state of the form.
Available options:
public
, draft
, closed
Two-letter ISO language code.
Available options:
default
, simple
, notion
Available options:
light
, dark
, auto
Available options:
centered
, full
Available options:
sm
, md
, lg
Available options:
none
, small
, full
Whether to hide the OpnForm branding.
Transparent background when form is embedded.
Maximum length:
50
Maximum length:
2000
Maximum length:
50
Required range:
x >= 1
Maximum length:
50
Available options:
recaptcha
, 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.
Available options:
public
, draft
, closed
Two-letter ISO language code.
Available options:
default
, simple
, notion
Available options:
light
, dark
, auto
Available options:
centered
, full
Available options:
sm
, md
, lg
Available options:
none
, small
, full
Whether to hide the OpnForm branding.
Transparent background when form is embedded.
Maximum length:
50
Maximum length:
2000
Maximum length:
50
Required range:
x >= 1
Maximum length:
50
Available options:
recaptcha
, hcaptcha
An array of field and layout blocks that make up the form.