transactionalEmails

Update an email template

Update an existing transactional email template by its numeric ID or custom template identifier string. All fields in the request body are optional; only the provided fields will be updated. You can update the template name, subject, sender, reply-to address, HTML content (via htmlContent or htmlUrl), active status, tag, attachment URL, and the personalized toField. Only one of sender email or sender ID should be provided per request.

put/smtp/templates/{templateId}

Request

  • Base URL: https://api.brevo.com/v3
  • URL: https://api.brevo.com/v3/smtp/templates/{templateId}
  • Auth: API key in header api-key

Path parameters

integer required
OR
string required

ID of the template. Can be a numeric template ID or a custom template identifier string.

Request body

attachmentUrlstring url

Absolute url of the attachment (no local file). Extensions 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

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)

isActiveboolean

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

replyTostring email

Email on which campaign recipients will be able to reply to

subjectstring

Subject of the email

tagstring

Tag of the template

templateNamestring

Name of the template

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

Response

transactional email template updated

object required

Changes

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