Update Email Template
Update an existing email template in your ZeptoMail account.
Endpoint
Request URL
https://api.zeptomail.com/v1.1/mailagents/{mailagent-alias}/templates/{template-key} Copied!
Scope
Zeptomail.MailTemplates.UPDATECopied!
(or)
Zeptomail.MailTemplates.ALLCopied!
Request Parameters
- Path Parameters
mailagent-aliasstringMandatory
Unique alias of the Mail Agent.
template-keystringMandatory
Unique key of the email template.
- Request Body
application/json
JSON Object
Show Sub-Attributes
htmlbodystringOptional
HTML content of the email template.
template_namestringOptional
Display name of the email template.
subjectstringOptional
Subject line of the email template.
Sample Request
Curl
Java
Python
Deluge
Copied!
curl --request PUT \
--url https://api.zeptomail.com/v1.1/mailagents/{mailagent-alias}/templates/{template-key} \
--header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
--header 'content-type: application/json' \
--data '{"htmlbody":"<h1> Hi User </h1>, Welcome aboard","template_name":"E-invite","subject":"Invitation to the event"}'Sample Request Body
Copied!
{
"htmlbody": "<h1> Hi User </h1>, Welcome aboard",
"template_name": "E-invite",
"subject": "Invitation to the event"
}
▼ Show full
Response Parameters
- HTTP code 200
Response Body - application/json
JSON Object
- HTTP code 400
Response Body - application/json
JSON Object
Possible Response Codes
200HTTP code
Template updated successfully.
400HTTP code
Bad Request
Sample Response: HTTP 200
Copied!
{
"data": {
"template_key": "1234567890",
"template_name": "E-invite (new)"
},
"status": "success"
}
▼ Show full
Sample Response: HTTP 400
Copied!
{
"error": {
"code": "TM_404",
"message": "Template not found"
},
"status": "failure"
}
▼ Show full
© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.