Skip to main content
PATCH
Typescript (SDK)

Authorizations

Authorization
string
header
required

API key in the format: Bearer {api_token}

Path Parameters

id
string
required

The form's ID.

Body

application/json
name
string
redirect_url
string | null

Full https:// URL people land on after they click the confirmation link, with confirmation_required on.

delivery_type
enum<string>

What everyone who submits gets by email, on every submission. none turns delivery off; file needs delivery_file_id, link needs delivery_url, experience needs experience_id.

Available options:
none,
file,
link,
experience
delivery_url
string | null

Full https:// URL to send: a page, video or download elsewhere.

experience_id
string | null

Experience ID to grant access to; the email carries a sign-in link.

delivery_subject
string | null

Subject of the delivery email. Defaults to "Your freebie from is here!".

delivery_message
string | null

Plain-text body of the delivery email; the download button is added below it.

archived_at
string<date-time> | null
tag_ids
string[]

Tag IDs added to everyone who submits (never replacing their other tags). With confirmation_required, once they confirm.

form_fields_attributes
object[]

Nested-attributes payload for creating, updating, or destroying fields in one round-trip. Pass id to update an existing field; pass _destroy: true to remove one.

settings
object
confirmation_required
boolean

Double opt-in: tags and the lead magnet wait until the person clicks the confirmation link.

delivery_file_id
string

File ID (file_..., from the Files API) to send as a download.

Response

Updated form

id
string
required
object
string
required
name
string
required
redirect_url
string | null
required
settings
object
required
archived_at
string<date-time> | null
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
confirmation_required
boolean
required
tag_ids
string[]
required
delivery_url
string | null
required
delivery_subject
string | null
required
delivery_message
string | null
required
delivery_type
enum<string>
required
Available options:
none,
file,
link,
experience
delivery_file
object | null
required
experience_id
string | null
required
submissions_count
number
required
form_fields
object[]
required