Update an email template
PATCH/emails/locations/:locationId/templates/:templateId
Update email template
Request
API Version
v3Location ID
Template ID
- application/json
- Body
- Example (auto)
Bodyrequired
Template name
Editor content to update. Required only when updating template content, and must be provided together with editorType. Provide HTML or plain-text string content.
Type of editor content. Required only when updating template content, and must be provided together with editorContent.
htmltextPreview text
Email subject line
Sender name
Sender email address
Whether template is archived
Parent folder ID. Pass null to move template to the root level.
ID of the user performing this action
{
"name": "Newsletter Template",
"editorContent": "<html><body>Hello World</body></html>",
"editorType": "html",
"previewText": "Email preview text",
"subjectLine": "Welcome to our newsletter",
"fromName": "John Doe",
"archived": false,
"parentFolderId": "67f15c2ae99226d5bcccb8f0",
"userId": "507f1f77bcf86cd799439011"
}
Success
- application/json
- Schema
- Example (auto)
Schema
Template ID
Template name
Whether template is archived
Sender name
Sender email address
Email subject line
Preview text
Preview URL
Template type
htmltextWhether template is plain text
Parent folder ID
Last updated timestamp
Created timestamp
Trace ID of request
{
"id": "507f1f77bcf86cd799439011",
"name": "My Email Template",
"archived": false,
"fromName": "John Doe",
"subjectLine": "Welcome to our newsletter",
"previewText": "Check out our latest updates",
"previewUrl": "https://example.com/preview/template123",
"editorType": "html",
"isPlainText": false,
"parentFolderId": "67f15c2ae99226d5bcccb8f0",
"updatedAt": "2025-07-24T11:55:43.598Z",
"createdAt": "2025-07-24T11:55:43.598Z",
"traceId": "019e4ef5-a65e-4198-8cf9-8e93dca9bda4"
}