deleteFile-Methode – Vergleich
Zweck
Eine an einen Datensatz angehängte Datei löschen.
Anfrage-URL
Version 1.0:
https://crm.zoho.com/crm/private/xml/Leads/deleteFile?authtoken=AuthToken&scope=crmapi&sid=Attachment Id
Version 2.0:
URL: https://www.zohoapis.com/crm/v2/{module_api_name}/{record_id}/Attachments/{attachment_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 | In der Anfrage-URL angegeben. |
Beispielantworten:
Antwort in Version 1.0 | Antwort in Version 2.0 |
---|---|
<?xml version="1.0" encoding="UTF-8" ?> <response uri="/crm/private/xml/Leads/deleteFile"> <success> <code>4800</code> <message>Attachment deleted successfully.</message> </success> </response> | { "data": [ { "code": "SUCCESS", "details": { "id": "1386586000002588012" }, "message": "record deleted", "status": "success", } ] } |