PATCH
/templates/{id}Update an existing templateParameters
idstringpathrequiredThe Template ID or alias.
Request body
application/json
objectUpdateTemplateOptions
aliasstringThe alias of the template.
fromstringSender email address. To include a friendly name, use the format "Your Name <sender@domain.com>".
htmlstringThe HTML version of the template.
namestringThe name of the template.
reply_toarray of stringReply-to email addresses.
Show child attributes
subjectstringEmail subject.
textstringThe plain text version of the template.
variablesarray of objectShow child attributes
Show array items
fallback_valuevalueThe fallback value of the variable.
Show child attributes
oneOf · 5 options
Option 1string
Option 2number
Option 3boolean
Option 4object
Option 5array of value
keystringrequiredThe key of the variable.
typestringrequiredThe type of the variable.
{
"alias": "string",
"from": "string",
"html": "string",
"name": "string",
"reply_to": [
"string"
],
"subject": "string",
"text": "string",
"variables": [
{
"fallback_value": "string",
"key": "string",
"type": "boolean"
}
]
}Responses
objectUpdateTemplateResponseSuccess
idstringThe ID of the template.
objectstringThe object type of the response.
{
"id": "string",
"object": "template"
}