# Associate Custom object with Ticekts

**URL:** <https://community.hubspot.com/t/associate-custom-object-with-ticekts/133203>\
**Category:** APIs & Integrations\
**Tags:** starter\
**Created:** [May 22, 2025, 12:25pm UTC](https://community.hubspot.com/t/associate-custom-object-with-ticekts/133203 "2025-05-22T12:25:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AviaraLabs](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@AviaraLabs](https://community.hubspot.com/u/AviaraLabs)\
**Post date:** [May 22, 2025, 12:25pm UTC](https://community.hubspot.com/t/associate-custom-object-with-ticekts/133203/1 "2025-05-22T12:25:45Z")

</div>

Hello HubSpot Community,

I have successfully created a custom object and have its ID. Additionally, I have a specific ticket ID. I am looking to associate this custom object with the given ticket ID.

Could anyone provide guidance or share the correct API endpoint to achieve this association? Any insights or examples would be greatly appreciated.

Thank you in advance for your assistance!

---

<div class="post-metadata">

**Author:** ![SteveHTM](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stevehtm/32/22074_2.png) [@SteveHTM](https://community.hubspot.com/u/SteveHTM)\
**Post date:** [May 22, 2025, 2:35pm UTC](https://community.hubspot.com/t/associate-custom-object-with-ticekts/133203/2 "2025-05-22T14:35:31Z")

</div>

@AviaraLabs - Is what you are looking for available here:

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Fapi-reference%2Fcrm-associations-v4%2Fguide)**

You will of coutse have to all create/configure the right association type. This can be set up in the UI under the settings screens for the custom object you have created.

Good Luck!

Steve

---

<div class="post-metadata">

**Author:** ![kosalaindrasiri](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kosalaindrasiri/32/44349_2.png) [@kosalaindrasiri](https://community.hubspot.com/u/kosalaindrasiri)\
**Post date:** [May 22, 2025, 5:32pm UTC](https://community.hubspot.com/t/associate-custom-object-with-ticekts/133203/3 "2025-05-22T17:32:20Z")

</div>

Hi @AviaraLabs,

API to Associate a Custom Object with a Ticket :

`/crm/v4/objects/{fromObjectType}/{fromObjectId}/associations/{toObjectType}/{toObjectId}/{associationType}`

Reference: [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/guides/api/crm/associations/associations-v4#associate-records)

You might also need [Association type ID values](https://developers.hubspot.com/docs/guides/api/crm/associations/associations-v4#association-type-id-values)

Regards,

Kosala
