Update a form

Saves changes to a form. Keys left out keep their stored value.

actiondata, submitdata, style, options and cfields are each stored whole, so sending part of one removes the rest of it. To change one setting, read the form with GET /forms/{id}, change the setting and send that whole object back. options.paused is the exception: it keeps its stored value whatever is sent, and only PUT /forms/{id}/pause, PUT /forms/{id}/resume, PUT /forms/{id}/restartSubmissionCount and the form's options.submission_limit change it. paused_by, paused_at, submission_limit_since and submission_limit_after_id also keep their stored values whatever is sent; submission_limit, submission_limit_emails, submission_limit_unit and one_submission_per_email keep theirs when left out, and null removes them. options.preferenceCenterType keeps its stored value too: a form's type is set when it is created. On an ipad form, sending options.sendoptin as true keeps the stored options and ignores the rest of what is sent.

Unsafe HTML is filtered out of name, body, thanks and html elements in cfields, whatever submit says. A subscribe-to-list action whose list no longer exists is dropped.

Saving also requests a new screenshot of the form. When its subscribe-to-list actions change, the list associations of the automations that start when the form is submitted are rebuilt.

Requires the permission to edit forms.

{
  "form": {
    "name": "Form updated",
    "action": "",
    "actiondata": {
      "actions": [
        {
          "title": "Subscribe to a list",
          "type": "subscribe-to-list",
          "id": "df6ce7f4-c6de-42d9-a796-000d40bcf099",
          "listName": "Generall list",
          "list": "1"
        },
        {
          "title": "Subscribe to an SMS list",
          "type": "subscribe-to-sms-list",
          "sms_consent": true,
          "id": "bb7a4592-0265-4dfb-9810-a9a8f987c64f",
          "listName": "Master SMS List",
          "list": "7"
        },
        {
          "title": "Add a tag",
          "type": "add-a-tag",
          "tag": "Welcome",
          "id": "103b53ef-b234-4052-b342-a45d2f42259c"
        },
        {
          "title": "Add to a deal",
          "type": "add-to-deal",
          "id": "2d2ba5e7-2983-4161-8234-76b547767405",
          "pipeline": "1",
          "dealGroupTitle": "First Pipline",
          "email": "Enter an email address",
          "dealcurrency": "usd",
          "dealvalue": 0,
          "dealtitle": "New deal from form ",
          "stage": "2",
          "dealStageTitle": "In Contact"
        },
        {
          "title": "Email results",
          "type": "email-results",
          "email": "[email protected]",
          "subject": "Form submission results",
          "fromemail": "[email protected]",
          "fromname": "John Doe",
          "id": "b48080d2-732a-4865-bed5-72b37d88f442"
        }
      ]
    },
    "submit": "show-thank-you",
    "submitdata": {},
    "url": "",
    "layout": "inline-form",
    "title": "",
    "body": "",
    "button": "Submit",
    "thanks": "Thanks for signing up!",
    "style": {
      "ac_branding": true,
      "background": "FFFFFF",
      "border": {
        "color": "B0B0B0",
        "radius": 0,
        "style": "solid",
        "width": 0
      },
      "button": {
        "background": "004CFF",
        "border": {
          "color": "333333",
          "radius": 4,
          "style": "solid",
          "width": 0
        },
        "fontcolor": "FFFFFF",
        "padding": 10
      },
      "dark": true,
      "fontFamily": "\"IBM Plex Sans\", Helvetica, sans-serif",
      "fontcolor": "000000",
      "layout": "normal",
      "padding": {
        "bottom": 20,
        "left": 20,
        "right": 20,
        "top": 20
      },
      "width": 500
    },
    "options": {
      "blanks_overwrite": true,
      "confaction": "show-message",
      "sendoptin": true,
      "confform": "50",
      "optin_created": true,
      "optin_id": 108,
      "useBgColor": true,
      "useBgImage": false
    },
    "cfields": [
      {
        "type": "header",
        "header": "Subscribe for Email Updates",
        "class": "_x19620520"
      },
      {
        "type": "html",
        "html": "<p>Add a descriptive message telling what your visitor is signing up for here.</p>",
        "header": "undefined",
        "class": "_x90115161"
      },
      {
        "type": "fullname",
        "header": "Full Name",
        "default_text": "Type your name",
        "class": "_x21466802"
      },
      {
        "id": "email",
        "type": "email",
        "header": "Email",
        "default_text": "Type your email",
        "required": true,
        "class": "_x32875615"
      },
      {
        "header": "Phone",
        "default_text": "Type your phone number",
        "consent_message": "By submitting this form and signing up for texts, you consent to receive marketing text messages (e.g. promos, cart reminders) from [Your Company Name] at the number provided. Consent is not a condition of purchase. Msg & data rates may apply. Msg frequency varies. Unsubscribe at any time by replying STOP.",
        "id": "phone",
        "type": "phone",
        "required": true,
        "sms_consent": true,
        "request_confirmation": true,
        "phone_prefix": "IE",
        "phone_validation": true,
        "class": "_x64021393"
      },
      {
        "type": "image",
        "multiple": true,
        "reactField": true,
        "class": "_x25795271"
      }
    ],
    "parentformid": 0,
    "cdate": "2025-06-17T13:14:46.000Z",
    "screenshot": null,
    "defaultscreenshot": null,
    "sitescreenshot": null,
    "entries": 0,
    "contacts": null,
    "deals": null,
    "address": null
  }
}
{
  "form": {
    "name": "Form Updated",
    "action": "",
    "actiondata": {
      "actions": [
        {
          "title": "Subscribe to a list",
          "type": "subscribe-to-list",
          "id": "df6ce7f4-c6de-42d9-a796-000d40bcf099",
          "listName": "Generall List",
          "list": "1"
        },
        {
          "title": "Subscribe to an SMS list",
          "type": "subscribe-to-sms-list",
          "sms_consent": true,
          "id": "bb7a4592-0265-4dfb-9810-a9a8f987c64f",
          "listName": "Master SMS List",
          "list": "7"
        },
        {
          "title": "Add a tag",
          "type": "add-a-tag",
          "tag": "Welcome",
          "id": "103b53ef-b234-4052-b342-a45d2f42259c"
        },
        {
          "title": "Add to a deal",
          "type": "add-to-deal",
          "id": "2d2ba5e7-2983-4161-8234-76b547767405",
          "pipeline": "1",
          "dealGroupTitle": "First Pipline",
          "email": "Enter an email address",
          "dealcurrency": "usd",
          "dealvalue": 0,
          "dealtitle": "New deal from form ",
          "stage": "2",
          "dealStageTitle": "In Contact"
        },
        {
          "title": "Email results",
          "type": "email-results",
          "email": "[email protected]",
          "subject": "Form submission results",
          "fromemail": "[email protected]",
          "fromname": "John Doe",
          "id": "b48080d2-732a-4865-bed5-72b37d88f442"
        }
      ]
    },
    "submit": "show-thank-you",
    "submitdata": {},
    "url": "",
    "layout": "inline-form",
    "title": "",
    "body": "",
    "button": "Submit",
    "thanks": "Thanks for signing up!",
    "style": {
      "ac_branding": true,
      "background": "FFFFFF",
      "border": {
        "color": "B0B0B0",
        "radius": 0,
        "style": "solid",
        "width": 0
      },
      "button": {
        "background": "004CFF",
        "border": {
          "color": "333333",
          "radius": 4,
          "style": "solid",
          "width": 0
        },
        "fontcolor": "FFFFFF",
        "padding": 10
      },
      "dark": true,
      "fontFamily": "\"IBM Plex Sans\", Helvetica, sans-serif",
      "fontcolor": "000000",
      "layout": "normal",
      "padding": {
        "bottom": 20,
        "left": 20,
        "right": 20,
        "top": 20
      },
      "width": 500
    },
    "options": {
      "blanks_overwrite": true,
      "confaction": "show-message",
      "sendoptin": true,
      "confform": "50",
      "optin_created": true,
      "optin_id": 108,
      "useBgColor": true,
      "useBgImage": false
    },
    "cfields": [
      {
        "type": "header",
        "header": "Subscribe for Email Updates",
        "class": "_x19620520"
      },
      {
        "type": "html",
        "html": "<p>Add a descriptive message telling what your visitor is signing up for here.</p>",
        "header": "undefined",
        "class": "_x90115161"
      },
      {
        "type": "fullname",
        "header": "Full Name",
        "default_text": "Type your name",
        "class": "_x21466802"
      },
      {
        "id": "email",
        "type": "email",
        "header": "Email",
        "default_text": "Type your email",
        "required": true,
        "class": "_x32875615"
      },
      {
        "header": "Phone",
        "default_text": "Type your phone number",
        "consent_message": "By submitting this form and signing up for texts, you consent to receive marketing text messages (e.g. promos, cart reminders) from [Your Company Name] at the number provided. Consent is not a condition of purchase. Msg & data rates may apply. Msg frequency varies. Unsubscribe at any time by replying STOP.",
        "id": "phone",
        "type": "phone",
        "required": true,
        "sms_consent": true,
        "request_confirmation": true,
        "phone_prefix": "IE",
        "phone_validation": true,
        "class": "_x64021393"
      },
      {
        "type": "image",
        "multiple": true,
        "reactField": true,
        "class": "_x25795271"
      }
    ],
    "parentformid": 0,
    "userid": "1",
    "addressid": 0,
    "cdate": "2025-06-17T08:14:46-05:00",
    "udate": "2025-06-18T00:36:22-05:00",
    "links": {
      "address": "https://test.activehosted.com/api/3/forms/49/address"
    },
    "id": "49",
    "address": null
  }
}
Path Params
integer
required

ID of the form to update

Body Params

The fields to save, under form

A form to save, under form

form
object
required

The form

Responses

Language
Credentials
Header
URL
LoadingLoading…
Response
Choose an example:
application/json