Forms

Update a Form's name, settings, confirmation behavior, or auto-tag list.

patch/forms/{id}

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Path parameters

id, string required

The form's ID.

Request body

FormRequest required
name, string
redirect_url, string nullable

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

delivery_type, 'none' | 'file' | 'link' | 'experience'

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.

delivery_url, string nullable

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

experience_id, string nullable

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

delivery_subject, string nullable

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

delivery_message, string nullable

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

archived_at, string date-time nullable
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

Form required
id, string required
object, string required
name, string required
redirect_url, string nullable required
settings, object required
archived_at, string date-time nullable required
created_at, string date-time required
updated_at, string date-time required
confirmation_required, boolean required
tag_ids, string[] required
delivery_url, string nullable required
delivery_subject, string nullable required
delivery_message, string nullable required
delivery_type, 'none' | 'file' | 'link' | 'experience' required
delivery_file, object nullable required
experience_id, string nullable required
submissions_count, number required
form_fields, FormField[] required

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    4 more changes in this revision