Actions71
- Settings Actions
- Subscribers Actions
- Create Subscriber
- Manage Subscriber Lists By Query
- Get Subscribers
- Delete Subscriber By List
- Get Subscriber By Id
- Update Subscriber By Id
- Delete Subscriber By Id
- Manage Subscriber Lists
- Manage Subscriber List By Id
- Manage Blocklist By Subscriber List
- Manage Blocklist Subscribers By Id
- Export Subscriber Data By ID
- Get Subscriber Bounces By Id
- Delete Subscriber Bounces By Id
- Subscriber Send Optin By Id
- Delete Subscriber By Query
- Blocklist Subscribers Query
- Bounces Actions
- Import Actions
- Campaigns Actions
- Update Preview Campaign By Id
- Get Campaigns
- Create Campaign
- Get Campaign By Id
- Update Campaign By Id
- Delete Campaign By Id
- Get Running Campaign Stats
- Get Campaign Analytics
- Preview Campaign By Id
- Preview Campaign Text By Id
- Update Campaign Status By Id
- Update Campaign Archive By Id
- Create Campaign Content By Id
- Test Campaign By Id
- Media Actions
- Templates Actions
- Public Actions
- Miscellaneous Actions
- Admin Actions
- Logs Actions
- Lists Actions
- Transactional Actions
- Maintenance Actions
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
- Updating the HTML body of a campaign template to include new promotional content.
- Changing the subject line of a transactional email template to reflect a new offer.
- 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
- Listmonk API Templates Documentation - Official documentation for managing templates via the Listmonk API.