Easymailing
Subscription forms

Update an embedded form

PUT /audiences/{audienceUuid}/suscription_forms/{uuid}/embedded

PUT/audiences/{audienceUuid}/suscription_forms/{uuid}/embedded

Changes the settings of an embedded form: title, language, double opt-in, welcome email, channels and groups. The design is not touched.

When to use: To rename an embedded form or change how it handles sign-ups. Send every setting you want to keep: omitted booleans, channels and groups go back to their defaults.

When not to use: For a popup form use update_popup_form; to publish, pause or unpublish use publish_form, pause_form or unpublish_form. For a form created in the Customer App use update_subscription_form.

Permissions: Requires the manager role or higher, or the marketing.forms_landings.write capability.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

audienceUuid*string

UUID of the audience the form belongs to. Get it with list_audiences.

uuid*string

UUID of the subscription form. Get it with list_audience_forms.

Request Body

The updated SuscriptionForm resource

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X PUT "https://api.easymailing.com/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/suscription_forms/3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08/embedded" \  -H "X-Auth-Token: YOUR_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "title": "string",    "locale": "string",    "double_opt_in": true,    "enable_welcome_email": true,    "groups": [      {}    ],    "channels": [      "string"    ],    "sms_double_opt_in": true  }'
{  "id": 0,  "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",  "hash": "string",  "url": "http://example.com",  "domain": "string",  "title": "string",  "type": "popup",  "status": "form.status.draft",  "generation": "current",  "converted_at": "2019-08-24T14:15:22Z",  "double_opt_in": true,  "channels": [    "email"  ],  "sms_double_opt_in": true,  "enable_welcome_email": true,  "active": true,  "paused": true,  "audience": "string",  "groups": [    "/entity/1"  ],  "behavior": {    "triggers": {},    "schedule": {},    "frequency": {},    "visibility": {}  },  "stats": {    "impressions": 0,    "conversions": 0,    "conversion_rate": 0.1,    "last_subscription_at": "2019-08-24T14:15:22Z"  },  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}