Easymailing
Booking pages

Restore a booking email design

POST /booking_pages/{uuid}/email_designs/{type}/actions/restore_default

POST/booking_pages/{uuid}/email_designs/{type}/actions/restore_default

Replaces the design of one booking email with the current default design, in the language the email already has. The subject is not changed. Customizations of the design are lost.

When to use: Only when the user asks to discard their changes to the design of the confirmation or data_check email.

When not to use: To change the subject or the sender, use update_booking_email_settings; this operation does not touch them. The design cannot be edited through the API.

Side effects: The customized design is overwritten and cannot be recovered. Nothing is sent now; the next emails of that type use the default design. Archived pages cannot be changed.

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
type*string

Which email: confirmation or data_check.

Value in

  • "confirmation"
  • "data_check"

Request Body

The new BookingEmailDesign resource

TypeScript Definitions

Use the request body type in TypeScript.

restore_booking_email_default (fase 5): the design of one booking email back to the default (RestoreBookingEmailDefault). Generated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's. The design itself (Beefree) is not published.

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 POST "https://api.easymailing.com/booking_pages/b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84/email_designs/confirmation/actions/restore_default" \  -H "X-Auth-Token: YOUR_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "revision": "string"  }'
{  "page": "string",  "type": "confirmation",  "content_revision": "string",  "default": true}