Update
AI-generatedOverview
This node manages email templates in the Braze platform, specifically allowing users to create, retrieve information about, list, and update email templates. The "Update" operation lets you modify an existing email template by changing its name, subject, HTML body, plain text body, preheader, tags, and CSS inlining settings.
Common scenarios include:
- Updating marketing or transactional email templates with new content or branding.
- Adjusting email previews by modifying the preheader.
- Managing tags for categorization or segmentation within Braze.
- Enabling or disabling inline CSS for better email client compatibility.
Practical example: You have a seasonal promotion email template and want to update its subject line and HTML body to reflect the current campaign without creating a new template.
Properties
| Name | Meaning |
|---|---|
| Template Name | Name of your email template (required). |
| Subject | Email template subject line (leave empty to keep current). |
| Body (HTML) | Email template body that may include HTML (leave empty to keep current). |
| Plain Text Body | A plaintext version of the email template body. |
| Preheader | Email preheader used to generate previews in some clients. |
| Tags | Comma-separated list of tags (tags must already exist in Braze). |
| Should Inline CSS | Whether to use the inline_css feature on this template (boolean). |
| Email Template ID | The email template's API identifier (required). |
Output
The node outputs JSON data representing the response from the Braze API after performing the update operation. This typically includes details of the updated email template such as its ID, name, subject, body content, tags, and other metadata returned by Braze.
If an error occurs, the output JSON will contain an error field describing the issue, along with additional fields like the original error message, HTTP status code, and Braze-specific error code.
The node does not output binary data.
Dependencies
- Requires an API key credential for authenticating with the Braze API.
- Needs the Braze instance URL or endpoint configured in the credentials.
- Uses Braze REST API endpoints for email template management.
Troubleshooting
Common issues:
- Invalid or missing API key or instance URL can cause authentication failures.
- Providing a non-existent email template ID will result in errors.
- Tags specified must already exist in Braze; otherwise, the update may fail.
- Leaving required fields empty when they are mandatory will cause validation errors.
Error messages:
- Errors returned from Braze API are captured and presented in the output JSON under the
errorfield. - HTTP status codes and Braze error codes are included to help diagnose issues.
- To resolve errors, verify API credentials, ensure the email template ID is correct, and confirm tags exist in Braze.
- Errors returned from Braze API are captured and presented in the output JSON under the