deleteRecords

deleteRecords Method - Comparison

Purpose

To delete the selected records.

Request URL

Version 1.0:

https://crm.zoho.com/crm/private/xml/Leads/deleteRecords?authtoken=AuthToken&scope=crmapi&id=Record ID

Version 2.0:

URL: https://www.zohoapis.com/crm/v2/Leads/{record_id}

Method: DELETE

Header: Authorization=Zoho-oauthtoken {oauth_token}

Request Parameters

Version 1.0Version 2.0
authtoken=****Authorization=Zoho-oauthtoken ***** - as a Header.
scope=crmapiN/A
idid has to be given in the request URL.
 

Sample API Request:

Request in Version 1.0Request in Version 2.0
https://crm.zoho.com/crm/private/xml/Leads/deleteRecords?authtoken=AuthToken&scope=crmapi&id=Record IDhttps://www.zohoapis.com/crm/v2/Leads/{record_id}

Sample Responses:

Response in Version 1.0Response in Version 2.0
<?xml version="1.0" encoding="UTF-8" ?>
<response uri="/crm/private/xml/Leads/deleteRecords">
<result>
<code>5000</code>
<message>Record Id(s) : 1386586000002575001,Record(s) deleted successfully</message>
</result>
</response>
{
  "data": [
    {
     "code": "SUCCESS",
     "details": {
      "id": "1386586000002576001"
     },
     "message": "record deleted",
     "status": "success"
    }
  ]
}

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohocrm.com