Update
Update a template by ID or alias using the default context.Parameters
The template ID or alias.
The template update parameters.
Returns
Returns an*UpdateTemplateResponse containing the updated template ID.
Example
UpdateWithContext
Update a template by ID or alias with a custom context.Parameters
Context for the request, useful for timeouts and cancellation.
The template ID or alias.
The template update parameters.
Returns
Returns an*UpdateTemplateResponse containing the updated template ID.
Example
Types
UpdateTemplateRequest
Request payload for updating a template.The name of the template.
A unique alias for the template. Can be used instead of the ID to reference the template.
The sender email address. Can be a plain email or formatted as “Name <[email protected]>”.
The email subject line. Can include template variables like
{{{variable_name}}}.Reply-to email address. Can be a string or array of strings.
The HTML content of the email template. Use
{{{variable_name}}} syntax for variables.Important: All variables referenced in Html must be declared in the Variables array, or the API will return a validation error.Plain text version of the email template.
Array of variable declarations used in the template. All variables referenced in Html or Subject must be declared here.
UpdateTemplateResponse
Response from updating a template.The unique identifier of the updated template.
The object type, always “template”.