Update details for a specific email template
Use the following endpoint to update details for a specific email template on this platform. Only include elements that need to be updated.
Endpoint | Purpose |
---|---|
PATCH {URI}/emailTemplates/{etid} | Update details for a specific Email Template on this Platform. |
The following table shows parameters for PATCH {URI}/emailTemplates/{etid}
.
Parameter | Data type | Description |
---|---|---|
etid | string | (Required) Email Template Identifier (ETID) is returned in the email template response payload. (Path Parameter). |
name | string | (Optional) A unique name to give the template. |
fromName | string | (Optional) The name that will appear in the From line of the email. |
subject | string | (Optional) The Subject of the email. |
headerImage | string | (Optional) A Base64 encoded string of an image that will show as the header of the email. |
headerImageAltText | string | (Optional) The Alt Text for the Header Image in the email. |
accentColor | string | (Optional) A Hex color value, six hexadecimal digits preceded by a pound sign, used as an accent in the email. |
messageBody | string | (Optional) The message body for the email. This is often used to let the recipient know why they have received the reward. The string may have up to 1024 characters. |
closing | string | (Optional) After the reward credential, a space to close the message to the recipient. |
customerServiceMessage | string | (Optional) If left null, Tango's Customer Support contact information will be included. Otherwise contact information for your customer support, if you are taking responsibility for providing first tier customer support of your recipients. |
accessControl | array of objects | (Optional) Which Customers and/or Accounts should have access to this template. |
defaults | array of objects | (Optional) If you want this template to be used at order time for the given Platform, Customer or Account when the Email Template Identifier (ETID) is not provided with the order. |
See the example payload below:
{
"etid": "string",
"name": "string",
"fromName": "string",
"subject": "string",
"headerImage": "string",
"headerImageAltText": "string",
"accentColor": "string",
"messageBody": "string",
"closing": "string",
"customerServiceMessage": "string",
"accessControls": [
{
"type": "PLATFORM",
"identifier": "string"
}
],
"defaults": [
{
"type": "PLATFORM",
"identifier": "string"
}
]
}
The response message for this endpoint is:
- 200 Ok
- 400 Bad Request
- 401 Unauthorized
- 403 Forbidden
- 404 Not Found
- 409 Conflict, Duplicate Exists
Updated 4 days ago