# Problem creating associate with a custom object

**URL:** <https://community.hubspot.com/t/problem-creating-associate-with-a-custom-object/39245>\
**Category:** CMS Development\
**Created:** [June 21, 2021, 2:57pm UTC](https://community.hubspot.com/t/problem-creating-associate-with-a-custom-object/39245 "2021-06-21T14:57:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaleperez](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kaleperez/32/69256_2.png) [@kaleperez](https://community.hubspot.com/u/kaleperez)\
**Post date:** [June 21, 2021, 2:57pm UTC](https://community.hubspot.com/t/problem-creating-associate-with-a-custom-object/39245/1 "2021-06-21T14:57:11Z")

</div>

Hi,

I created a wrong association between my custom object to the deal. I have to create an association but in the other way, the “deal” to the “custom object”. How can I delete this existing association?. When I tried to use “[https://api.hubapi.com/crm-associations/v1/associations/delete?hapikey=](https://api.hubapi.com/crm-associations/v1/associations/delete?hapikey=)” I don’t have the definitionId value and it’s requiered.

Another question, how can I know the “objectid” for the deal and contact object?

Thanks,

---

<div class="post-metadata">

**Author:** ![Kevin-C](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kevin-c/32/34570_2.png) [@Kevin-C](https://community.hubspot.com/u/Kevin-C)\
**Post date:** [June 22, 2021, 2:25am UTC](https://community.hubspot.com/t/problem-creating-associate-with-a-custom-object/39245/2 "2021-06-22T02:25:27Z")

</div>

Hey kaleperez  
“Associations are always two-way (i.e., if record A is associated to record B, record B is also associated to record A) and can be seen in each record in the right panel.”  
See this doc:

> **[Associate records](https://knowledge.hubspot.com/records/associate-records)**
>
> Learn how to associate records and understand the primary company association in HubSpot.

When you navigate to a contact or deal via the UI the last number in the URL is the ID.
