PATCH
/templates/{id}Update a template
Updates an existing template with the fields you provide. Use the id path parameter to select the template and send only the template properties you want to change.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
idstringrequired
The template ID or alias to update.
Template properties to update; all fields are optional.
namestringoptional
The name of the template.
aliasstringoptional
The alias of the template.
fromstringoptional
Sender email address. To include a friendly name, use the format "Your Name <sender@domain.com>".
subjectstringoptional
Email subject.
reply_toarray<string>optional
Reply-to email addresses.
htmlstringoptional
The HTML version of the template.
textstringoptional
The plain text version of the template.
variablesarray<object>optional
Template variable definitions; each variable must include a `key` and a `type` of `string`, `number`, `boolean`, `object`, or `list`.
200Returns the template's identifier and the response object type.
idstringoptional
The ID of the template.
objectstringoptional
The object type of the response.
Error handling
The id path parameter must identify an existing template. Each variable must include key and type, and type must be one of string, number, boolean, object, or list.