<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Remove association between contact and companies in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Remove-association-between-contact-and-companies/m-p/981305#M73848</link>
    <description>&lt;P&gt;I managed to figure this out, using the v1 of the API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Essentially, there are two connections made where there appears to be one. The example in the original post works fine to remove the Contact &amp;gt; Company connection, but the Company &amp;gt; Contact connection remains.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution is to make essentially the same call, but swap the 'fromObjectId' and 'toObjectId', and change the 'definitionId' to the Company &amp;gt; Contact definition (280 as per the&amp;nbsp;&lt;A href="https://legacydocs.hubspot.com/docs/methods/crm-associations/crm-associations-overview" target="_blank" rel="noopener"&gt;v1 docs&lt;/A&gt;&amp;nbsp;, or 2)&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 May 2024 16:05:13 GMT</pubDate>
    <dc:creator>JCove</dc:creator>
    <dc:date>2024-05-23T16:05:13Z</dc:date>
    <item>
      <title>Remove association between contact and companies</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Remove-association-between-contact-and-companies/m-p/750487#M61044</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help in removing&amp;nbsp; association between contact and companies&amp;nbsp;using API.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Contact screen of hubspot with multiple companies association" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/84487iE4111AEA0579760F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Contact.png" alt="Contact screen of hubspot with multiple companies association" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Contact screen of hubspot with multiple companies association&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Request for remove association" style="width: 928px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/84486i069D8EDD2E269CD5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Request.png" alt="Request for remove association" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Request for remove association&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one contact and it's association with multiple&amp;nbsp;companies and i have try to remove&amp;nbsp;association using API as per &lt;A title="Delete CRM association" href="https://legacydocs.hubspot.com/docs/methods/crm-associations/delete-association" target="_blank" rel="noopener"&gt;Delete CRM association&lt;/A&gt;&amp;nbsp;but this is not working for me.(There is no error and API returns 204 as per API document)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached all screenshots in&amp;nbsp; attachment pls see attachments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to remove contact ketan from bothe the companies as menstioned in attach image.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please do the needful.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 08:59:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Remove-association-between-contact-and-companies/m-p/750487#M61044</guid>
      <dc:creator>CDarji</dc:creator>
      <dc:date>2023-02-02T08:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Remove association between contact and companies</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Remove-association-between-contact-and-companies/m-p/750911#M61071</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/514831"&gt;@CDarji&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would try using the v3 or v4 Associations API.&amp;nbsp;You may have more success with one of these endpoints.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;v3 Documentation&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/api/crm/associations/v3" target="_blank"&gt;https://developers.hubspot.com/docs/api/crm/associations/v3&lt;/A&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;DELETE /crm/v3/associations/{fromObjectType}/{toObjectType}/batch/archive&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;v4 Documentation&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/api/crm/associations" target="_blank"&gt;https://developers.hubspot.com/docs/api/crm/associations&lt;/A&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;DELETE /crm/v4/objects/{objectType}/{objectId}/associations/{toObjectType}/{toObjectId}&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 20:13:42 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Remove-association-between-contact-and-companies/m-p/750911#M61071</guid>
      <dc:creator>tominal</dc:creator>
      <dc:date>2023-02-02T20:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Remove association between contact and companies</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Remove-association-between-contact-and-companies/m-p/896611#M69874</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/514831"&gt;@CDarji&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;Have you tried using&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://ecosystem.hubspot.com/marketplace/apps/productivity/workflow-automation/associations-app-272901" target="_blank" rel="noopener nofollow noreferrer"&gt;Associ8&lt;/A&gt;? It can automatically remove associations via workflow.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DStaat_1-1703094209813.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/105827iC21730E2DFE3263F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DStaat_1-1703094209813.png" alt="DStaat_1-1703094209813.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;BR /&gt;&lt;BR /&gt;I'll leave some documentation for the feature below if you want to see it in action:&lt;BR /&gt;&lt;BR /&gt;-&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://docs.hapily.com/how-to-use-unassoci8-to-remove-hubspot-associations-using-labels" target="_blank" rel="noopener nofollow noreferrer"&gt;Remove Associations Automatically Using Labels&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Let me know if you have any questions!&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;&lt;BR /&gt;-David Staat&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 17:47:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Remove-association-between-contact-and-companies/m-p/896611#M69874</guid>
      <dc:creator>DStaat</dc:creator>
      <dc:date>2023-12-20T17:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Remove association between contact and companies</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Remove-association-between-contact-and-companies/m-p/981305#M73848</link>
      <description>&lt;P&gt;I managed to figure this out, using the v1 of the API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Essentially, there are two connections made where there appears to be one. The example in the original post works fine to remove the Contact &amp;gt; Company connection, but the Company &amp;gt; Contact connection remains.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution is to make essentially the same call, but swap the 'fromObjectId' and 'toObjectId', and change the 'definitionId' to the Company &amp;gt; Contact definition (280 as per the&amp;nbsp;&lt;A href="https://legacydocs.hubspot.com/docs/methods/crm-associations/crm-associations-overview" target="_blank" rel="noopener"&gt;v1 docs&lt;/A&gt;&amp;nbsp;, or 2)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 16:05:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Remove-association-between-contact-and-companies/m-p/981305#M73848</guid>
      <dc:creator>JCove</dc:creator>
      <dc:date>2024-05-23T16:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Remove association between contact and companies</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Remove-association-between-contact-and-companies/m-p/981354#M73851</link>
      <description>&lt;P&gt;Awesome! Thanks for sharing &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/766554"&gt;@JCove&lt;/a&gt;&lt;/SPAN&gt; — Jaycee&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 17:20:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Remove-association-between-contact-and-companies/m-p/981354#M73851</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2024-05-23T17:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Remove association between contact and companies</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Remove-association-between-contact-and-companies/m-p/981417#M73859</link>
      <description>&lt;P&gt;I think I spoke too soon here! While I'm sure this theory is right, it seems the API has fallen out of date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The connection between the Company &amp;gt; Contact can be either definitionId 2 or 280 (&lt;A href="https://legacydocs.hubspot.com/docs/methods/crm-associations/crm-associations-overview" target="_blank" rel="noopener"&gt;as per the docs&lt;/A&gt;) , however, if I try to provide 280 as a definitionId , the delete endpoint throws an error stating it is not a valid value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suppose I'll try the other API endpoints.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 19:48:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Remove-association-between-contact-and-companies/m-p/981417#M73859</guid>
      <dc:creator>JCove</dc:creator>
      <dc:date>2024-05-23T19:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Remove association between contact and companies</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Remove-association-between-contact-and-companies/m-p/981435#M73861</link>
      <description>&lt;P&gt;Okay, the API v4 seems like the easiest to work with. You only need to make one call to get the connections, and one to remove. The removal method removes all links.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get the connections:&lt;/P&gt;&lt;P&gt;GET :&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://api.hubapi.com/crm/v4/objects/Contact/{{contactID}}/associations/Company" target="_blank"&gt;https://api.hubapi.com/crm/v4/objects/Contact/{{contactID}}/associations/Company&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To delete:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;POST&amp;nbsp;&lt;A href="https://api.hubapi.com/crm/v4/associations/Contact/Company/batch/archive" target="_blank"&gt;https://api.hubapi.com/crm/v4/associations/Contact/Company/batch/archive&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;With JSON object:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{ 
    "inputs": [
    {
      "from": {
        "id": "contactID"
      },
      "to": [
        {
          "id": "companyID"
        }
      ]
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 20:21:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Remove-association-between-contact-and-companies/m-p/981435#M73861</guid>
      <dc:creator>JCove</dc:creator>
      <dc:date>2024-05-23T20:21:53Z</dc:date>
    </item>
  </channel>
</rss>

