v1

latestSwagger 2.0MIT2026-07-17233380637.0 KB
Transactional emails

Update an email template

put/smtp/templates/{templateId}

Path parameters

templateIdinteger required

id of the template

Request body

tagstring

Tag of the template

templateNamestring

Name of the template

htmlContentstring

Required if htmlUrl is empty. If the template is designed using Drag & Drop editor via HTML content, then the design page will not have Drag & Drop editor access for that template. Body of the message (HTML must have more than 10 characters)

htmlUrlstring url

Required if htmlContent is empty. URL to the body of the email (HTML)

subjectstring

Subject of the email

replyTostring email

Email on which campaign recipients will be able to reply to

toFieldstring

To personalize the «To» Field. If you want to include the first name and last name of your recipient, add {FNAME} {LNAME}. These contact attributes must already exist in your Brevo account. If input parameter 'params' used please use {{contact.FNAME}} {{contact.LNAME}} for personalization

attachmentUrlstring url

Absolute url of the attachment (no local file). Extension allowed: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub and eps

isActiveboolean

Status of the template. isActive = false means template is inactive, isActive = true means template is active

Example request

{
  "tag": "OrderConfirmation",
  "sender": {
    "name": "Mary from MyShop",
    "email": "contact@myshop.com",
    "id": 3
  },
  "templateName": "Order Confirmation - EN",
  "htmlContent": "The order n°xxxxx has been confirmed. Thanks for your purchase",
  "htmlUrl": "https://html.domain.com",
  "subject": "Thanks for your purchase !",
  "replyTo": "support@myshop.com",
  "toField": "{FNAME} {LNAME}",
  "attachmentUrl": "https://attachment.domain.com",
  "isActive": true
}

Response

transactional email template updated