deleteRecords-Methode – Vergleich
Zweck
Die ausgewählten Datensätze löschen.
Anfrage-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}
Methode: DELETE
Header: Authorization=Zoho-oauthtoken {oauth_token}
Anfrageparameter
Version 1.0 | Version 2.0 |
---|---|
authtoken=**** | Authorization=Zoho-oauthtoken ***** - als Header. |
scope=crmapi | K. A. |
ID | ID ist in der Anfrage-URL anzugeben. |
Beispiel für API-Anfrage:
Anfrage in Version 1.0 | Anfrage in Version 2.0 |
---|---|
https://crm.zoho.com/crm/private/xml/Leads/deleteRecords?authtoken=AuthToken&scope=crmapi&id=Record ID | https://www.zohoapis.com/crm/v2/Leads/{record_id} |
Beispielantworten:
Antwort in Version 1.0 | Antwort 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" } ] } |