Delete template

Purpose

This API deletes the chosen template.

Request URL

Method : DELETE

https://api.zeptomail.com/v1.1/mailagents/{mailagent-alias}/templates{template-key}

OAuth scope

Any one of the following scopes can be used to access this API

scope=Zeptomail.MailTemplates.All

or

scope=Zeptomail.MailTemplates.DELETE
 

ALL - This will give the basic CRUD access too all the email templates APIs.

The steps to generate and use OAuth token can be found here.

Path parameters

ParameterTypeDescription
mailagent-aliasStringUnique alias value given to the Mail Agent. It is available in the API section of your Mail Agent.
template-keyStringUnique key for the template. It is available in the template section within the Mail Agent.

Ensure that the template you select belongs to the Mail Agent you are currently using, since templates are specific to each Mail Agent.

Sample request

Copiedcurl "https://api.zeptomail.com/v1.1/mailagents/{mailagent-alias}/templates/{{template-key}}\"
-X DELETE
-H "Authorization : Zoho-oauthtoken ***"\
-H "Content-Type : application/json" \