Skip to main content
PATCH
JavaScript

Authorizations

Authorization
string
header
required

Your Moonbase API key.

Path Parameters

id
string
required

The ID of the Form to update.

Body

application/json

Parameters for updating a Form.

name
string

The new name for the form.

redirect_url
null | string

Updated redirect URL, or null to clear. Omit to leave the existing value unchanged. Liquid template rendered at submission time with form field values under submission.<key> (keyed by the field's key) plus UTM params (utm_source, utm_medium, utm_campaign, utm_term, utm_content) automatically appended. Use the uri_encode filter for URL-safe values. The rendered URL must parse as a valid URL or the submission errors.

pages_enabled
boolean

If true, a Moonbase Pages hosted page is enabled for this form, providing a standalone public URL for sharing.

business_email_required
boolean

If true, submissions require a business email address.

Response

Successful response.

A Form provides a way to create Items in a Collection, often via a public URL for external users. Each form submission creates a new item.

type
string
required

String representing the object’s type. Always form for this object.

Allowed value: "form"
id
string
required

Unique identifier for the object.

name
string
required

The name of the form, used as the title on its public page.

pages_enabled
boolean
required

If true, a Moonbase Pages hosted page is enabled for this form, providing a standalone public URL for sharing.

business_email_required
boolean
required

true if submissions require a business email address, blocking free and disposable providers.

collection
CollectionPointer · object
required

The Collection that submissions to this form are saved to.

html_embed
string
required

The HTML snippet for embedding the form on your website.

created_at
string<date-time>
required

Time at which the object was created, as an ISO 8601 timestamp in UTC.

updated_at
string<date-time>
required

Time at which the object was last updated, as an ISO 8601 timestamp in UTC.

redirect_url
string

Optional URL the user is redirected to after a successful submission. When unset, no redirect occurs. Stored as a Liquid template; rendered at submission time with form field values under submission.<key> (keyed by the field's key) plus UTM params (utm_source, utm_medium, utm_campaign, utm_term, utm_content) automatically appended. Use the uri_encode filter for URL-safe values, e.g. https://example.com/thanks?email={{ submission.email | uri_encode }}. The rendered URL must parse as a valid URL or the submission errors.

pages_url
string<uri>

The public URL for the form, if pages_enabled is true.