delink Method - Comparison

delink Method - Comparison

Purpose

To disassociate the relationship between parent and child records.

Request URL

Version 1.0:

https://crm.zoho.com/crm/private/xml/<Module>/delink?id=<Record ID>&authtoken=AuthToken&scope=crmapi&relatedId=<Related Record ID>&relatedModule=<Related-Module>

Version 2.0:

URL: https://www.zohoapis.com/crm/v2/{module_api_name}/{record_id}/{related_list_api_name}/{related_record_id}

Method: DELETE

Header: Authorization=Zoho-oauthtoken {oauth_token}

For Example : https://www.zohoapis.com/crm/v2/Campaigns/1386586000000803001/Contacts/1386586000000599023

Note:

  • The API names of the related lists can be found using this API(GET) - https://www.zohoapis.com/crm/v2/settings/related_lists?module={module_api_name}

Request Parameters

Version 1.0 Version 2.0
authtoken=**** Authorization=Zoho-oauthtoken ***** - as a Header.
scope=crmapi N/A
id Given within the Request URL.
relatedId Given within the Request URL.
relatedModule Given within the Request URL.

Sample Responses:

Response in Version 1.0 Response in Version 2.0
<?xml version="1.0" encoding="UTF-8" ?>
<response uri="/crm/private/xml/Campaigns/delink">
<result>
<code>5000</code>
<message>Record Id(s) : 1386586000000599023,Record(s) deleted successfully</message>
</result>
</response>
{
  "data": [
   {
     "code": "SUCCESS",
     "details": {
      "id": "1386586000000599023"
     },
     "message": "relation removed",
     "status": "success",
   }
  ]
 }
    • Related Articles

    • delink Method

       Purpose You can use the delink method to dissassociate the relationship between parent and child records. For example, cases or tasks that are associated with account can be delinked, so that cases or tasks can be associated with another account ...
    • downloadPhoto Method - Comparison

      Purpose To download the photo of a lead or a contact. Request URL Version 1.0: https://crm.zoho.com/crm/private/xml/(Leads or Contacts)/downloadPhoto?authtoken=AuthToken&scope=crmapi&id=RecordID Version 2.0: URL: ...
    • downloadFile Method - Comparison

      Purpose To download a file attached to a record. Request URL Version 1.0: https://crm.zoho.com/crm/private/xml/Leads/downloadFile?authtoken=AuthToken&scope=crmapi&id=Attachment Id Version 2.0: URL: ...
    • deletePhoto Method - Comparison

      Purpose To delete a photo of a contact or lead. Request URL Version 1.0: https://crm.zoho.com/crm/private/xml/(Leads or Contacts)/deletePhoto?authtoken=AuthToken&scope=crmapi&id=RecordID Version 2.0: URL: https://www.zohoapis.com/crm/v2/{Leads or ...
    • 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 ...