<?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: How to set a new Primary Company to a Contact in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-set-a-new-Primary-Company-to-a-Contact/m-p/879583#M69072</link>
    <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/627046"&gt;@heytavo&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Did you get this resolved? If not, I believe this note in the documentation answers your question –&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/api/crm/associations#:~:text=If%20a%20record%20has%20more%20than%20one%20associated%20company%2C%20only%20one%20can%20be%20the%20primary%20company.%20The%20other%20associations%20can%20either%20be%20unlabelled%20or%20have%20custom%20association%20labels." target="_blank" rel="noopener"&gt;Association type IDs&lt;/A&gt;:&lt;/P&gt;
&lt;P&gt;“If a record has more than one associated company, &lt;EM&gt;only one can be the primary company.&lt;/EM&gt; The other associations can either be unlabeled or have custom association labels.”&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are correct in needing to update or remove the existing Primary Company association before updating a new primary company for your record.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The docs don't tell us why it's not possible, just that there can only be one. I understand why this would be useful.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Jaycee&lt;/P&gt;</description>
    <pubDate>Tue, 14 Nov 2023 22:01:00 GMT</pubDate>
    <dc:creator>Jaycee_Lewis</dc:creator>
    <dc:date>2023-11-14T22:01:00Z</dc:date>
    <item>
      <title>How to set a new Primary Company to a Contact</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-set-a-new-Primary-Company-to-a-Contact/m-p/878760#M69027</link>
      <description>&lt;P&gt;Hello community!&lt;/P&gt;&lt;P&gt;I have a current Contact in my account that already has a "Primary Company".&lt;/P&gt;&lt;P&gt;I want to update it to a new Company, so I'm using this endpoint:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;/crm/v4/objects/contact/{objectId}/associations/company/{toObjectId}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Passing this data in the body:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;[&lt;DIV&gt;&amp;nbsp; {&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; associationCategory: "HUBSPOT_DEFINED",&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; associationTypeId: 1,&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; label:&amp;nbsp;"Primary"&lt;DIV&gt;&amp;nbsp;&amp;nbsp; }&lt;DIV&gt;]&lt;DIV&gt;&amp;nbsp;&lt;DIV&gt;However, the response I get from that request, says the associationTypeId used was the `279` (the default Contact To Company).&lt;DIV&gt;&amp;nbsp;&lt;DIV&gt;How should I proceed? Should I update the existing Primary one first?&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 13 Nov 2023 18:19:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-set-a-new-Primary-Company-to-a-Contact/m-p/878760#M69027</guid>
      <dc:creator>heytavo</dc:creator>
      <dc:date>2023-11-13T18:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a new Primary Company to a Contact</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-set-a-new-Primary-Company-to-a-Contact/m-p/879583#M69072</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/627046"&gt;@heytavo&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Did you get this resolved? If not, I believe this note in the documentation answers your question –&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/api/crm/associations#:~:text=If%20a%20record%20has%20more%20than%20one%20associated%20company%2C%20only%20one%20can%20be%20the%20primary%20company.%20The%20other%20associations%20can%20either%20be%20unlabelled%20or%20have%20custom%20association%20labels." target="_blank" rel="noopener"&gt;Association type IDs&lt;/A&gt;:&lt;/P&gt;
&lt;P&gt;“If a record has more than one associated company, &lt;EM&gt;only one can be the primary company.&lt;/EM&gt; The other associations can either be unlabeled or have custom association labels.”&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are correct in needing to update or remove the existing Primary Company association before updating a new primary company for your record.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The docs don't tell us why it's not possible, just that there can only be one. I understand why this would be useful.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Jaycee&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 22:01:00 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-set-a-new-Primary-Company-to-a-Contact/m-p/879583#M69072</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-11-14T22:01:00Z</dc:date>
    </item>
  </channel>
</rss>

