Resend icon

Resend

Send emails, manage contacts, create broadcasts, handle templates, domains, segments, topics, and webhooks using the Resend email platform

Template → Update

AI-generated

Overview

This node operation updates an existing email template in the Resend email platform. It allows users to modify various aspects of a template such as its alias, sender email, HTML content, internal name, reply-to address, subject line, and plain text content. Additionally, users can define or update template variables that act as placeholders for dynamic content when sending emails. This operation is useful for maintaining and customizing reusable email templates to ensure they remain accurate and relevant for email campaigns or automated emails.

Use Case Examples

  1. Updating the subject line and HTML content of a marketing email template to reflect a new promotion.
  2. Changing the default sender email and reply-to address for a customer support email template.
  3. Adding or modifying template variables to personalize emails with customer-specific data such as product names or prices.

Properties

Name Meaning
Template The specific email template to update, identified either from a list or by its unique ID.
Update Fields Fields to update on the selected template, including alias, from address, HTML content, name, reply-to address, subject, and text content.
Template Variables Variables used in the template that act as placeholders replaced with actual values when sending emails. Each variable has a key, type (string or number), and an optional fallback value.

Output

JSON

  • id - Unique identifier of the updated template.
  • alias - Alias of the updated template.
  • from - Default sender email address of the updated template.
  • html - HTML content of the updated template.
  • name - Internal display name of the updated template.
  • replyTo - Reply-to email address of the updated template.
  • subject - Default subject line of the updated template.
  • text - Plain text content of the updated template.
  • variables - List of variables defined for the updated template, including their keys, types, and fallback values.

Dependencies

  • Requires an API key credential for the Resend email platform to authenticate and authorize template updates.

Troubleshooting

  • Ensure the template ID or selection is valid and exists in the Resend account; invalid IDs will cause update failures.
  • Verify that the 'from' email address is from a verified domain to avoid rejection by the Resend platform.
  • Check that variable keys used in the template content match those defined in the template variables collection to prevent rendering errors.
  • If the API key credential is missing or invalid, authentication errors will occur; ensure proper credential configuration.

Links

Discussion