Easymailing
Booking pages

Update the emails of a booking page

PUT /booking_pages/{uuid}/email_settings

PUT/booking_pages/{uuid}/email_settings

Changes the sender, the sender name and the subjects of the emails a booking page sends to the people who book. Only what you send changes.

When to use: To give a page its sender (required to publish it), change the name recipients see, or reword a subject.

When not to use: To change what the email looks like, use the app: the design is not exposed. To go back to the default design, use restore_booking_email_default. To manage the senders themselves, use list_senders, create_sender.

Side effects: Nothing is sent now. From the next booking, the emails to the people who book leave from the chosen sender with the new name and subjects; replies go to the sender's own address. Emails already sent do not change.

Permissions: Requires a CRM seat and the crm.contacts_companies.write capability. Booking pages have no separate read permission, so it is also required to read. Pages belong to the user who owns the token: each user manages only their own pages, and a page of another user is answered as not found.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

uuid*string

UUID of the booking page. Get it from list_booking_pages.

Formatuuid

Request Body

The updated BookingEmailSettings resource

TypeScript Definitions

Use the request body type in TypeScript.

Sender, sender name and subjects of the two booking emails of a page (fase 5): get_booking_email_settings and update_booking_email_settings. Generated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's.

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X PUT "https://api.easymailing.com/booking_pages/b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84/email_settings" \  -H "X-Auth-Token: YOUR_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "sender": "string",    "sender_name": "string",    "confirmation_subject": "string",    "data_check_subject": "string",    "base_revision": "string"  }'
{  "sender": "string",  "sender_email": "string",  "sender_name": "string",  "default_sender_name": "string",  "sender_mode": "direct",  "effective_sender": {    "source": "selected",    "email": "string"  },  "emails": {    "confirmation": {      "persisted": true,      "locale": "string",      "subject": "string",      "content_revision": "string",      "updated_at": "2019-08-24T14:15:22Z",      "default": true    },    "data_check": {      "persisted": true,      "locale": "string",      "subject": "string",      "content_revision": "string",      "updated_at": "2019-08-24T14:15:22Z",      "default": true    }  },  "settings_revision": "string"}