deleteFile

deleteFile Method - Comparison

Purpose

To delete a file attached to a record.

Request 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}

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
idGiven within the Request URL.

Sample Responses:

Response in Version 1.0Response 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",
   }
  ]
 }

Share this post : FacebookTwitter

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

Write to us: support@zohocrm.com