<?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 New object associations not accessible via API in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/New-object-associations-not-accessible-via-API/m-p/1076683#M78635</link>
    <description>&lt;P&gt;Hi there,&lt;BR /&gt;&lt;BR /&gt;I created a set of association from contacts to appointments, and want to update these via the api.&lt;BR /&gt;&lt;BR /&gt;The appointments object is accessible as object 0-421, but I cannot seem to access the created associations.&lt;BR /&gt;&lt;BR /&gt;If I fetch all schema's the created associations do not show up at all:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl --request GET \
  --url https://api.hubapi.com/crm/v4/associations/definitions/configurations/all \
  --header 'authorization: Bearer YOUR_ACCESS_TOKEN'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Nov 2024 18:54:19 GMT</pubDate>
    <dc:creator>JVermunt</dc:creator>
    <dc:date>2024-11-28T18:54:19Z</dc:date>
    <item>
      <title>New object associations not accessible via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/New-object-associations-not-accessible-via-API/m-p/1076683#M78635</link>
      <description>&lt;P&gt;Hi there,&lt;BR /&gt;&lt;BR /&gt;I created a set of association from contacts to appointments, and want to update these via the api.&lt;BR /&gt;&lt;BR /&gt;The appointments object is accessible as object 0-421, but I cannot seem to access the created associations.&lt;BR /&gt;&lt;BR /&gt;If I fetch all schema's the created associations do not show up at all:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl --request GET \
  --url https://api.hubapi.com/crm/v4/associations/definitions/configurations/all \
  --header 'authorization: Bearer YOUR_ACCESS_TOKEN'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 18:54:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/New-object-associations-not-accessible-via-API/m-p/1076683#M78635</guid>
      <dc:creator>JVermunt</dc:creator>
      <dc:date>2024-11-28T18:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: New object associations not accessible via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/New-object-associations-not-accessible-via-API/m-p/1076866#M78648</link>
      <description>&lt;P&gt;Hi &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/717339"&gt;@JVermunt&lt;/a&gt;&lt;/SPAN&gt;, I hope that you are well!&lt;BR /&gt;&lt;BR /&gt;Thanks for asking the Community!&lt;BR /&gt;&lt;BR /&gt;I understand that you are trying to view all the associations with the appointment object. Please let me know if that's not the case.&lt;BR /&gt;&lt;BR /&gt;I'd like to share this article "&lt;A href="https://knowledge.hubspot.com/data-management/view-a-model-of-your-crm-object-and-activity-relationships" target="_blank"&gt;View a model of your CRM object and activity relationships&lt;/A&gt;" for information on the new appointment object.&lt;BR /&gt;&lt;BR /&gt;Since this is a new CRM object, it may be that it is not yet accessible via API. I will double check on this internally for you.&lt;BR /&gt;&lt;BR /&gt;In the meantime, I'd love to put you in touch with some of our Top Experts and Community Members:&lt;BR /&gt;&lt;BR /&gt;Hi &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/108856"&gt;@rw1982&lt;/a&gt;&lt;/SPAN&gt;, &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/9629"&gt;@HubDoPete&lt;/a&gt;&lt;/SPAN&gt;, &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/654259"&gt;@Jonas_De_Mets&lt;/a&gt;&lt;/SPAN&gt; and &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/324811"&gt;@zach_threadint&lt;/a&gt;&lt;/SPAN&gt; have you tried API calls with the new appointment object? If yes, do you have suggestions to help &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/717339"&gt;@JVermunt&lt;/a&gt;&lt;/SPAN&gt;, please?&lt;BR /&gt;&lt;BR /&gt;Thanks so much and have a lovely day!&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 11:37:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/New-object-associations-not-accessible-via-API/m-p/1076866#M78648</guid>
      <dc:creator>BérangèreL</dc:creator>
      <dc:date>2024-11-29T11:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: New object associations not accessible via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/New-object-associations-not-accessible-via-API/m-p/1077067#M78660</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/717339"&gt;@JVermunt&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As per &lt;A href="https://developers.hubspot.com/beta-docs/guides/api/crm/associations/associations-v4#retrieve-association-limits" target="_blank" rel="noopener"&gt;HubSpot's API docs&lt;/A&gt; (see &lt;EM&gt;"Retrieve association limits"&lt;/EM&gt; section), the GET&amp;nbsp;&lt;EM&gt;/crm/v4/associations/definitions/configurations/all&lt;/EM&gt;&amp;nbsp;API endpoint is intended for you to &lt;EM&gt;"read all defined association &lt;U&gt;&lt;STRONG&gt;limits&lt;/STRONG&gt;&lt;/U&gt;"&lt;/EM&gt;. It returns &lt;EM&gt;"custom association limits defined across all objects"&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;It sounds like you might be more interested in using the &lt;EM&gt;"Create and manage association types"&lt;/EM&gt;&amp;nbsp;section within the &lt;A href="https://developers.hubspot.com/beta-docs/guides/api/crm/associations/associations-v4#create-and-manage-association-types" target="_blank" rel="noopener"&gt;relevant HubSpot API documentation&lt;/A&gt;?&lt;/P&gt;
&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;I hope that proves helpful. Please let me know if you have any follow-up questions.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Nov 2024 05:05:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/New-object-associations-not-accessible-via-API/m-p/1077067#M78660</guid>
      <dc:creator>zach_threadint</dc:creator>
      <dc:date>2024-11-30T05:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: New object associations not accessible via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/New-object-associations-not-accessible-via-API/m-p/1077497#M78679</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811"&gt;@zach_threadint&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;The&amp;nbsp;&lt;EM&gt;"Create and manage association types" &lt;/EM&gt;API returns no association from contacts to appointments, which is why I used the&amp;nbsp;&lt;EM&gt;read all defined association&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;U&gt;&lt;STRONG&gt;limits&lt;/STRONG&gt;&lt;/U&gt;"&amp;nbsp;&lt;/EM&gt;to check on all associations.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 08:19:18 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/New-object-associations-not-accessible-via-API/m-p/1077497#M78679</guid>
      <dc:creator>JVermunt</dc:creator>
      <dc:date>2024-12-02T08:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: New object associations not accessible via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/New-object-associations-not-accessible-via-API/m-p/1077505#M78680</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/230185"&gt;@BérangèreL&lt;/a&gt;, I'm doing great!&lt;BR /&gt;&lt;BR /&gt;Thanks for the information and references. I would like to add that the records itself from appointsments are accessible via the API, including the existing associations that are made.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The problem that I face is that I cannot find the associations schema and add associations to objects.&lt;BR /&gt;&lt;BR /&gt;For more context, I want to use the appointments objects to track our events, where I connect contacts to the appointments with a no-show, show, registered or canceled label.&lt;BR /&gt;For example, our operational manager will upload the show list of the event to HubSpot, where a custom coded action will update all the associations labels of the contacts to the event.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 08:27:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/New-object-associations-not-accessible-via-API/m-p/1077505#M78680</guid>
      <dc:creator>JVermunt</dc:creator>
      <dc:date>2024-12-02T08:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: New object associations not accessible via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/New-object-associations-not-accessible-via-API/m-p/1078077#M78712</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/717339"&gt;@JVermunt&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, that's right. The Associations API has clear definitions between endpoints that manage the definition of association types (e.g. making it possible to associate individual records) and those that manage associations between individual records.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To retrieve associations between individual records, you'll want to use the "Retrieve associated records" endpoint (see "Retrieve associated records" section in &lt;A href="https://developers.hubspot.com/beta-docs/guides/api/crm/associations/associations-v4#retrieve-associated-records" target="_blank" rel="noopener"&gt;this documentation&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope that proves helpful. Please let me know if you have any follow-up questions.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 05:43:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/New-object-associations-not-accessible-via-API/m-p/1078077#M78712</guid>
      <dc:creator>zach_threadint</dc:creator>
      <dc:date>2024-12-03T05:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: New object associations not accessible via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/New-object-associations-not-accessible-via-API/m-p/1079495#M78772</link>
      <description>&lt;P&gt;Based on this thread I conclude that it is not yet possible to access the association label for the new objects via the API.&lt;BR /&gt;&lt;BR /&gt;Do you know if this is on the roadmap in the near future?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 13:22:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/New-object-associations-not-accessible-via-API/m-p/1079495#M78772</guid>
      <dc:creator>JVermunt</dc:creator>
      <dc:date>2024-12-05T13:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: New object associations not accessible via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/New-object-associations-not-accessible-via-API/m-p/1079840#M78794</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/717339"&gt;@JVermunt&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is currently possible to retrieve both &lt;STRONG&gt;[1]&lt;/STRONG&gt; association label definitions via &lt;A href="https://developers.hubspot.com/beta-docs/guides/api/crm/associations/associations-v4" target="_blank" rel="noopener"&gt;HubSpot's CRM &amp;gt; Associations API&lt;/A&gt; and &lt;STRONG&gt;[2]&lt;/STRONG&gt; the application of association labels between CRM records via &lt;A href="https://developers.hubspot.com/beta-docs/guides/api/crm/understanding-the-crm" target="_blank" rel="noopener"&gt;HubSpot's CRM &amp;gt; Objects APIs&lt;/A&gt;. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;GET&lt;/STRONG&gt; &lt;A href="https://api.hubapi.com/crm/v4/associations/" target="_blank"&gt;https://api.hubapi.com/crm/v4/associations/&lt;/A&gt;&lt;STRONG&gt;:FROM_OBJECT_TYPE&lt;/STRONG&gt;/&lt;STRONG&gt;:TO_OBJECT_TYPE&lt;/STRONG&gt;/labels&lt;/LI&gt;
&lt;LI&gt;GET&amp;nbsp;&lt;A href="https://api.hubapi.com/crm/v4/" target="_blank"&gt;https://api.hubapi.com/crm/v4/&lt;/A&gt;&lt;SPAN&gt;objects/&lt;STRONG&gt;:FROM_OBJECT_TYPE&lt;/STRONG&gt;/:&lt;STRONG&gt;FROM_OBJECT_ID&lt;/STRONG&gt;/associations/&lt;STRONG&gt;:TO_OBJECT_TYPE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;I hope that proves helpful. Please let me know if you have any follow-up questions.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2024 00:23:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/New-object-associations-not-accessible-via-API/m-p/1079840#M78794</guid>
      <dc:creator>zach_threadint</dc:creator>
      <dc:date>2024-12-06T00:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: New object associations not accessible via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/New-object-associations-not-accessible-via-API/m-p/1080092#M78806</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811"&gt;@zach_threadint&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Thank you for your clarification and persistence, your answers helped me in finding the problem I had.&lt;BR /&gt;I used the api's you suggested using the pyton requests package:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;url = f"https://api.hubapi.com/crm/v4/associations/{ObjectType.APPOINTMENT.value}/{ObjectType.CONTACT.value}/labels"

response = requests.get(
        url, headers={"Authorization": f"Bearer {client.access_token}"}
    )

pprint(response.json())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This worked as intented and returned the USER_DEFINED associations.&lt;BR /&gt;&lt;BR /&gt;Previously, I was using the hubspot python client which did not give me the results:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;def explore_associations(client, from_object_type, to_object_type):
    api_response = client.crm.associations.v4.schema.definition_configurations_api.get_all_between_two_object_types(
        from_object_type=from_object_type, to_object_type=to_object_type
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So in conclusion, the association labels of the new objects do definitely work with the api, but I couldn't get it to work using the current version of the HubSpot python api and switched to using the regular requests package.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2024 14:19:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/New-object-associations-not-accessible-via-API/m-p/1080092#M78806</guid>
      <dc:creator>JVermunt</dc:creator>
      <dc:date>2024-12-06T14:19:40Z</dc:date>
    </item>
  </channel>
</rss>

