Shopware icon

Shopware

Shopware

Actions778

Mail Template → Update Mail Template

AI-generated

Overview

This node operation updates an existing mail template in the Shopware system. It is useful for scenarios where you need to modify the content, subject, sender details, or other attributes of a mail template used for automated emails or notifications. For example, updating the HTML content and subject line of a transactional email template to reflect new branding or information.

Use Case Examples

  1. Updating the subject and content of a mail template for order confirmation emails.
  2. Changing the sender name and description of a mail template used for marketing campaigns.

Properties

Name Meaning
Id Identifier for the mail_template, used to specify which mail template to update.
_response Data format for the response, used as a query parameter to specify the desired response format.
Mail Template Type Id Identifier for the type of mail template, required for the update.
System Default Boolean flag indicating if the mail template is a system default.
Sender Name Name of the sender displayed in the mail template.
Description Description of the mail template.
Subject Subject line of the mail template email, required for the update.
Content Html HTML content of the mail template, required for the update.
Content Plain Plain text content of the mail template, required for the update.
Custom Fields Custom fields in JSON format for additional data in the mail template.
Created At Creation timestamp of the mail template.
Updated At Last update timestamp of the mail template.
Translated Translated content in JSON format for localization.
Mail Template Type Detailed JSON object representing the mail template type and related nested data.
Media JSON array representing media associated with the mail template.
Request Options Node settings for request options such as batching, SSL issues, proxy, and timeout.

Output

JSON

  • id - Identifier of the updated mail template.
  • mailTemplateTypeId - Identifier of the mail template type.
  • systemDefault - Indicates if the mail template is a system default.
  • senderName - Name of the sender in the mail template.
  • description - Description of the mail template.
  • subject - Subject line of the mail template email.
  • contentHtml - HTML content of the mail template.
  • contentPlain - Plain text content of the mail template.
  • customFields - Custom fields data in JSON format.
  • createdAt - Creation timestamp of the mail template.
  • updatedAt - Last update timestamp of the mail template.
  • translated - Translated content for localization in JSON format.
  • mailTemplateType - Detailed JSON object representing the mail template type and related nested data.
  • media - JSON array representing media associated with the mail template.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure all required fields (Id, Mail Template Type Id, Subject, Content Html, Content Plain) are provided to avoid validation errors.
  • Check API credentials and base URL configuration if authentication errors occur.
  • If the response format (_response) is specified, ensure it matches supported formats by the API.
  • For SSL issues, consider enabling 'Ignore SSL Issues' option if using self-signed certificates or insecure connections.

Discussion