<?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: What is the difference between the three association categories? in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/What-is-the-difference-between-the-three-association-categories/m-p/896150#M69853</link>
    <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/337710"&gt;@RIvanov&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; The Associations API documentation added a list of HubSpot created associations. So that helps simplify things a bit — &lt;A href="https://developers.hubspot.com/docs/api/crm/associations" target="_blank" rel="noopener"&gt;Association type ID values&lt;/A&gt;. Other things of note:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Associations are omnidirectional, so Deal &amp;gt; Contact will be different from Contact &amp;gt; Deal, etc&lt;/LI&gt;
&lt;LI&gt;Custom associations and associations from Custom Objects to default objects like Contacts, Deals, Tickets, etc. need to be queried using this endpoint and make a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;GET&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;request to&lt;/SPAN&gt;
&lt;DIV&gt;&lt;CODE&gt;&lt;SPAN&gt;/crm/v4/associations/{fromObjectType}/{toObjectType}/labels&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;For the third option, INTEGRATOR_DEFINED, do you have a specific use case or example? Although the API example page exposes this option, the documentation doesn't provide an example.&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, 19 Dec 2023 22:09:52 GMT</pubDate>
    <dc:creator>Jaycee_Lewis</dc:creator>
    <dc:date>2023-12-19T22:09:52Z</dc:date>
    <item>
      <title>What is the difference between the three association categories?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/What-is-the-difference-between-the-three-association-categories/m-p/895909#M69842</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you tell me what is the difference between the three&amp;nbsp;association categories ("HUBSPOT_DEFINED", "USER_DEFINED", and "INTEGRATOR_DEFINED")?&lt;BR /&gt;&lt;BR /&gt;I tried adding a contact with an association, but it works only with the "HUBSPOT_DEFINED"&amp;nbsp;&lt;SPAN&gt;association&amp;nbsp;&lt;/SPAN&gt;category.&amp;nbsp;I make the following request:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;curl --location 'https://api.hubapi.com/crm/v3/objects/contacts' \
--header 'authorization: Bearer {token}' \
--header 'content-type: application/json' \
--data '{
    "associations": [
        {
            "types": [
                {
                    "associationCategory": "HUBSPOT_DEFINED",
                    "associationTypeId": 1
                }
            ],
            "to": {
                "id": "{companyId}"
            }
        }
    ],
    "properties": {
        "lastname": "John",
        "firstname": "Doe"
    }
}'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I change the category to "&lt;SPAN&gt;INTEGRATOR_DEFINED&lt;/SPAN&gt;" the API returns the following error:&lt;BR /&gt;"&lt;SPAN&gt;Cannot get definitions for unsupported categories: [INTEGRATOR_DEFINED]"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And if I change the category to "USER_DEFINED" the API returns another error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Invalid association spec: AssociationSpec{associationCategory=USER_DEFINED, associationTypeId=1}&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm a bit confused about how the categories are used. I can't find information about them in the documentation, so I would be grateful if someone could explain the difference between the three categories and why, in my case, it only works with "HUBSPOT_DEFINED".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Rosen Ivanov&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 22:37:00 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/What-is-the-difference-between-the-three-association-categories/m-p/895909#M69842</guid>
      <dc:creator>RIvanov</dc:creator>
      <dc:date>2023-12-19T22:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between the three association categories?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/What-is-the-difference-between-the-three-association-categories/m-p/896150#M69853</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/337710"&gt;@RIvanov&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; The Associations API documentation added a list of HubSpot created associations. So that helps simplify things a bit — &lt;A href="https://developers.hubspot.com/docs/api/crm/associations" target="_blank" rel="noopener"&gt;Association type ID values&lt;/A&gt;. Other things of note:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Associations are omnidirectional, so Deal &amp;gt; Contact will be different from Contact &amp;gt; Deal, etc&lt;/LI&gt;
&lt;LI&gt;Custom associations and associations from Custom Objects to default objects like Contacts, Deals, Tickets, etc. need to be queried using this endpoint and make a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;GET&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;request to&lt;/SPAN&gt;
&lt;DIV&gt;&lt;CODE&gt;&lt;SPAN&gt;/crm/v4/associations/{fromObjectType}/{toObjectType}/labels&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;For the third option, INTEGRATOR_DEFINED, do you have a specific use case or example? Although the API example page exposes this option, the documentation doesn't provide an example.&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, 19 Dec 2023 22:09:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/What-is-the-difference-between-the-three-association-categories/m-p/896150#M69853</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-12-19T22:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between the three association categories?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/What-is-the-difference-between-the-three-association-categories/m-p/897030#M69906</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;SPAN&gt;Jaycee,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply,&lt;/P&gt;&lt;P&gt;But my question was about the categories, not the association type ID values or the associations themselves.&lt;/P&gt;&lt;P&gt;I would like to know how to decide which of the three categories to use. And why, in the example above, does it only work with the "HUBSPOT_DEFINED" category?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Rosen&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 12:15:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/What-is-the-difference-between-the-three-association-categories/m-p/897030#M69906</guid>
      <dc:creator>RIvanov</dc:creator>
      <dc:date>2023-12-21T12:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between the three association categories?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/What-is-the-difference-between-the-three-association-categories/m-p/902602#M70160</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;, do you have a chance to look into my question?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 04:15:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/What-is-the-difference-between-the-three-association-categories/m-p/902602#M70160</guid>
      <dc:creator>RIvanov</dc:creator>
      <dc:date>2024-01-09T04:15:29Z</dc:date>
    </item>
  </channel>
</rss>

