Update SMTP Template

Update an email template

Options

Template Id
id of the template
Body
values to update in transactional email template

Request body which must comply to the following JSON Schema:

{
  "type" : "object",
  "properties" : {
    "tag" : {
      "type" : "string",
      "description" : "Tag of the template",
      "example" : "OrderConfirmation"
    },
    "sender" : {
      "type" : "object",
      "properties" : {
        "name" : {
          "type" : "string",
          "description" : "Name of the sender",
          "example" : "Mary from MyShop"
        },
        "email" : {
          "type" : "string",
          "description" : "Email of the sender",
          "format" : "email",
          "example" : "contact@myshop.com"
        },
        "id" : {
          "type" : "integer",
          "description" : "Select the sender for the template on the basis of sender id.\n_In order to select a sender with specific pool of IP’s, dedicated ip users shall pass id (instead of email)_.\n",
          "format" : "int64",
          "example" : 3
        }
      },
      "description" : "Sender details including id or email and name (_optional_). Only one of either Sender's email or Sender's ID shall be passed in one request at a time. For example:\n**{\"name\":\"xyz\", \"email\":\"example@abc.com\"}**\n**{\"name\":\"xyz\", \"id\":123}**\n"
    },
    "templateName" : {
      "type" : "string",
      "description" : "Name of the template",
      "example" : "Order Confirmation - EN"
    },
    "htmlContent" : {
      "type" : "string",
      "description" : "**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)\n",
      "example" : "The order n°xxxxx has been confirmed. Thanks for your purchase"
    },
    "htmlUrl" : {
      "type" : "string",
      "description" : "**Required if htmlContent is empty**. URL to the body of the email (HTML)\n",
      "format" : "url",
      "example" : "https://html.domain.com"
    },
    "subject" : {
      "type" : "string",
      "description" : "Subject of the email",
      "example" : "Thanks for your purchase !"
    },
    "replyTo" : {
      "type" : "string",
      "description" : "Email on which campaign recipients will be able to reply to",
      "format" : "email",
      "example" : "support@myshop.com"
    },
    "toField" : {
      "type" : "string",
      "description" : "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\n",
      "example" : "{FNAME} {LNAME}"
    },
    "attachmentUrl" : {
      "type" : "string",
      "description" : "Absolute url of the attachment (**no local file**). Extensions allowed:\n#### 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\n",
      "format" : "url",
      "example" : "https://attachment.domain.com"
    },
    "isActive" : {
      "type" : "boolean",
      "description" : "Status of the template. isActive = false means template is inactive, isActive = true means template is active",
      "example" : true
    }
  }
}
Result Format

Specify how the response should be mapped to the table output. The following formats are available:

Raw Response: Returns the raw response in a single row with the following columns:

  • status: HTTP status code

Input Ports

Icon
Configuration data.

Output Ports

Icon
Result of the request depending on the selected Result Format.
Icon
Configuration data (this is the same as the input port; it is provided as passthrough for sequentially chaining nodes to declutter your workflow connections).

Popular Predecessors

  • No recommendations found

Popular Successors

  • No recommendations found

Views

This node has no views

Workflows

  • No workflows found

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.