Shopware icon

Shopware

Shopware

Actions778

Mail Template Type → Update Mail Template Type

AI-generated

Overview

This node operation updates an existing Mail Template Type in the Shopware system. It is useful for scenarios where you need to modify the properties of a mail template type, such as its name, technical name, associated entities, custom fields, template data, and related mail templates. For example, you might update the technical name or add new custom fields to a mail template type used for transactional emails.

Use Case Examples

  1. Updating the name and technical name of a mail template type to reflect new branding.
  2. Modifying the available entities or template data to customize email content dynamically.
  3. Adding or updating custom fields to extend the mail template type's metadata.

Properties

Name Meaning
Id Identifier for the mail_template_type, used to specify which mail template type to update.
Response Data format for the response, used to specify how the response data should be formatted or if no response is needed.
Name The new name for the mail template type.
Technical Name The new technical name for the mail template type.
Available Entities JSON object specifying the entities available for the mail template type.
Custom Fields JSON object containing custom fields to add or update for the mail template type.
Template Data JSON object with template data used in the mail template type.
Created At Timestamp string indicating when the mail template type was created.
Updated At Timestamp string indicating when the mail template type was last updated.
Translated JSON object containing translated versions of the mail template type data.
Mail Templates JSON array containing mail templates associated with the mail template type.
Request Options Node-level request options such as batching, SSL handling, proxy, and timeout settings.

Output

JSON

  • id - The identifier of the updated mail template type.
  • name - The updated name of the mail template type.
  • technicalName - The updated technical name of the mail template type.
  • availableEntities - The updated available entities JSON object.
  • customFields - The updated custom fields JSON object.
  • templateData - The updated template data JSON object.
  • createdAt - The creation timestamp of the mail template type.
  • updatedAt - The last update timestamp of the mail template type.
  • translated - The translated data JSON object.
  • mailTemplates - The associated mail templates JSON array.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure the 'Id' property is correctly set to the mail template type you want to update; otherwise, the update will fail or affect the wrong record.
  • Make sure JSON properties like 'availableEntities', 'customFields', 'templateData', 'translated', and 'mailTemplates' are valid JSON strings to avoid parsing errors.
  • If you encounter SSL certificate errors, consider enabling the 'Ignore SSL Issues' option or configure a proper proxy if needed.
  • Timeouts can occur if the server is slow or unresponsive; adjust the 'Timeout' setting accordingly.

Discussion