Delete Template

This API allows you to delete a template.

Request Type

  • DELETE

Request URL

 https://campaigns.zoho.com/emailapi/v1/templates/{template_id}

Content-Type

application/json

List of Response Body Attributes

ParametersData TypeDescription
responseJSON ObjectContains the response details of the API.
codeIntegerSuccess or failure code.
messageStringSuccess or failure message returned by the API.
errorsJSON ObjectContains the error details of the API such as 'code' and 'message'.

Possible Errors

Error CodeDescription
400701Invalid template ID provided.
500701Template was not deleted.

Sample Response - Success

Copied{
  "response": {
    "code": 200705,
    "message": "Successfully deleted the template"
  }
}

Sample Response - Failure

Copied{
  "errors": [
    {
      "code": 500701,
      "message": "An error occurred in Templates API"
    }
  ]
}