Email Templates

Update email template

Update an existing email template

put/email-templates/{id}

Path parameters

idnumber required

Request body

templateNamestring

Template name

subjectstring

Email subject

bodystring

Email body (HTML)

upsellProductsnumber[] nullable

Array of product IDs for upsell (null or empty for normal emails)

sortOrdernumber

Sort order for display

Example request

{
  "templateName": "Upsell - Title Plan",
  "subject": "Complete your order with Title Plan!",
  "body": "<h1>Hi {{customerName}}</h1><p>Add Title Plan for just £10!</p>",
  "upsellProducts": [
    2,
    3
  ],
  "sortOrder": 1
}

Response

Email template updated successfully

Changes

No recorded changes to this endpoint across all 1 revision of this API.