delink

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.0Version 2.0
authtoken=****Authorization=Zoho-oauthtoken ***** - as a Header.
scope=crmapiN/A
idGiven within the Request URL.
relatedIdGiven within the Request URL.
relatedModuleGiven 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/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",
   }
  ]
 }

Share this post : FacebookTwitter

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

Write to us: support@zohocrm.com