Klaviyo icon

Klaviyo

Interact with the Klaviyo API

Actions17

Template → Update

AI-generated

Overview

This node updates an existing template in Klaviyo using the Klaviyo API. It is useful for scenarios where you need to modify the content of an email template, such as updating the HTML, text, or AMP content of the template. For example, marketers or developers can use this node to programmatically update email templates to reflect new branding, promotions, or content changes without manually editing them in the Klaviyo dashboard.

Use Case Examples

  1. Updating the HTML content of a promotional email template to include new product information.
  2. Changing the text content of a transactional email template to update terms and conditions.
  3. Modifying the AMP content of a template to enhance mobile email experience.

Properties

Name Meaning
Template ID The unique identifier of the template to update. This is required to specify which template will be modified.
Template Content The new content for the template, which can include HTML content, text content, and AMP content. This collection allows updating one or more of these content types.
Request Options Settings to control request behavior such as batching, SSL certificate validation, proxy usage, and timeout duration.

Output

JSON

  • id - The unique identifier of the updated template.
  • attributes
    • html - The updated HTML content of the template.
    • text - The updated text content of the template.
    • amp - The updated AMP content of the template.

Dependencies

  • Klaviyo API key credential

Troubleshooting

  • Ensure the Template ID is correct and corresponds to an existing template in Klaviyo; otherwise, the update will fail.
  • If updating HTML content, note that user-made Drag & Drop templates cannot be updated via this API field, which may cause the update to be ignored or rejected.
  • Check network settings if using a proxy or if SSL issues occur; enabling 'Ignore SSL Issues' can help bypass certificate validation problems but is insecure.
  • Timeout errors may occur if the server is slow to respond; increasing the timeout value in Request Options can help resolve this.

Discussion