Delete mailing list
Using this API, you can delete a mailing list. All you need to provide is the list key and choose whether to delete all list leads or retain them in the organization.
Scope required
ZohoMarketingAutomation.lead.DELETE
Other alternative scopes
ZohoMarketingAutomation.lead.WRITE (CREATE + UPDATE + DELETE)
ZohoMarketingAutomation.lead.ALL (CREATE + UPDATE + DELETE + READ)
Header:
Authorization: Zoho-oauthtoken <access_token>
Content-Type: application/x-www-form-urlencoded
Request type:
Get/ Post
Request URL
https://marketingautomation.zoho.com/api/v1/deletemailinglist
List of parameters
Parameter | Data type | Description |
listkey* | String | List Key to send a subscription mail to leads. |
resfmt | String | JSON |
deleteleads | String | on/off |
* - Mandatory parameters
Sample request
Copiedhttps://marketingautomation.zoho.com/api/v1/deletemailinglist?resfmt=JSON&listkey=listkey&deleteleads=[on/off]
Sample Response
Copied{
"message": "List(s) are deleted successfully!",
"status": "success",
"code": "0",
"uri": "/api/v1/deletemailinglist",
"version": "1"
}