v1

latestOpenAPI 3.1.02026-07-24700259.3 KB
TEMPLATES

Update an email template

Changes details of an existing email template.

post/template/edit

Request body

idstring required

The ID of the email template that you wish to change

new_idstring

If provided, will update the email template ID

template_namestring

If provided, will update the email template name

subjectstring

If provided, will update the email template subject

html_bodystring

If provided, will update the email template HTML body

text_bodystring

If provided, will update the email template Plain Text body

template_variablesobject

The pass-through values required by the template in the format {"variable1": "value1", "variable2": "value2"} (When template_id is provided)

tagsstring[]

If provided, will update the email template tags

Response

Template updated

request_idstring

Example response

{
  "request_id": "f00c0856-dde8-11eb-b4ce-1002b51e60a4",
  "data": {
    "id": "5355878",
    "name": "Order receipt",
    "template_name": "Order receipt",
    "subject": "Order receipt for {{ product_name }}",
    "tags": [
      "one"
    ],
    "last_updated": "2024-01-01 12:00:00"
  }
}