Listmonk icon

Listmonk

Interact with Listmonk API

Actions71

Overview

This node operation updates an existing template in the Listmonk system by its unique identifier. It is useful for scenarios where you need to modify the details of an email or campaign template, such as changing the name, type, subject, or content body. For example, you might update a campaign template's HTML body or change the subject line of a transactional email template.

Use Case Examples

  1. Updating the HTML body of a campaign template to include new promotional content.
  2. Changing the subject line of a transactional email template to reflect a new offer.
  3. Modifying the JSON source of a campaign visual template to update its design.

Properties

Name Meaning
Id The unique identifier of the template to update. This is required to specify which template to modify.
Name The new name for the template. This is optional and used to rename the template.
Type The type of the template, which can be 'campaign', 'campaign_visual', or 'tx' (transactional). This determines the template's category and usage context.
Subject The subject line for the template, applicable only for transactional ('tx') templates.
Body Source The JSON source for the email-builder template, applicable only for 'campaign_visual' type templates.
Body The HTML content body of the template, used to define the email's main content.
Request Options Additional request settings such as batching, SSL certificate validation, proxy configuration, and timeout settings to control how the update request is sent.

Output

JSON

  • id - The unique identifier of the updated template.
  • name - The updated name of the template.
  • type - The updated type of the template.
  • subject - The updated subject line of the template (if applicable).
  • body_source - The updated JSON source for campaign visual templates.
  • body - The updated HTML body content of the template.
  • updated_at - Timestamp indicating when the template was last updated.

Dependencies

  • Requires an API key credential for authenticating with the Listmonk API.

Troubleshooting

  • Ensure the template ID provided exists; otherwise, the update will fail with a 'not found' error.
  • Verify that the API credentials are correct and have sufficient permissions to update templates.
  • If using 'campaign_visual' type, ensure the 'body_source' JSON is valid and correctly formatted.
  • Timeout errors may occur if the server is slow to respond; consider increasing the timeout setting.
  • SSL certificate errors can be bypassed by enabling the 'Ignore SSL Issues' option, but this is insecure and should be used cautiously.

Links

Discussion