Delete Email Drafts
Purpose
To remove an email draft from the Email-related list in a Zoho CRM record.
Endpoints
- DELETE /{module_API_name}/{record-ID}/__email_drafts/{draft_ID}
Request Details
Request URL
{api-domain}/crm/{version}/{module_API_name}/{record_ID}/__email_drafts/{draft_ID}
Supported modules
Leads, Contacts, Deals, Accounts, Sales Orders, Purchase Orders, Invoices, Quotes, Cases, and Custom modules.
Header
Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52
Scope
ZohoCRM.Modules.ALL
(or)
ZohoCRM.Modules.{module_name}.{operation_type}
Possible Module Names
leads, accounts, contacts, deals, quotes, salesorders, purchaseorders, invoices, cases, and custom
Possible operation types
ALL - Full access to modules
DELETE - Delete Module data
Sample Request
Copied
Possible Errors
- INVALID_REQUEST_METHODHTTP 400
The request method is incorrect.
Resolution: Use the HTTP DELETE method to make this API call. Any other request method will result in this error. - INVALID_DATAHTTP 400
You have specified an invalid record ID or draft ID in the request URL.
Resolution: Specify valid record ID and draft ID in the request URL. - INVALID_MODULEHTTP 400
You have specified an invalid module API name in the request URL.
Resolution: Specify a valid module API name in the request URL. - OAUTH_SCOPE_MISMATCHHTTP 401
The access token you have used to make this API call does not have the required scope.
Resolution: Generate a new access token with the required scopes for this API. Refer to the Scope section at the beginning of this page for the list of required scopes. - INVALID_URL_PATTERNHTTP 404
The request URL is incorrect.
Resolution: Specify a valid request URL. Refer to the request URL section at the beginning of this page for more details. - INTERNAL_ERRORHTTP 500
Unexpected and unhandled exception in the server.
Resolution: Contact the support team at support@zohocrm.com.
Copied