# Contact Association

**URL:** <https://community.hubspot.com/t/contact-association/67974>\
**Category:** APIs & Integrations\
**Created:** [October 26, 2022, 10:29pm UTC](https://community.hubspot.com/t/contact-association/67974 "2022-10-26T22:29:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JdeRocquigny](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jderocquigny/32/21752_2.png) [@JdeRocquigny](https://community.hubspot.com/u/JdeRocquigny)\
**Post date:** [October 26, 2022, 10:29pm UTC](https://community.hubspot.com/t/contact-association/67974/1 "2022-10-26T22:29:51Z")

</div>

Is it possible to remove or update existing association of contact with Deal from an API call. I am creating a deal and associating contact at the same time. However, it is possibl the association needs to change. How can we change it via API call.

---

<div class="post-metadata">

**Author:** ![weiliang\_lee](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/weiliang_lee/32/81774_2.png) [@weiliang\_lee](https://community.hubspot.com/u/weiliang_lee)\
**Post date:** [October 27, 2022, 6:50am UTC](https://community.hubspot.com/t/contact-association/67974/2 "2022-10-27T06:50:25Z")

</div>

Hi there,

I don’t think you can do an update in one API call. Take a look at this document: [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/api/crm/crm-custom-objects), under the sections

- Associate an object with another object
- Remove an association between two objects

I was able to do something similar before, running the nodejs library, and it was something along this line (in your case):

```lia-code-sample
hubspotClient.crm.objects.associationsApi.archive("deal", <dealId>, "contact", <contactId>, "deal_to_contact");

hubspotClient.crm.objects.associationsApi.create("deal", <dealId>, "contact", <contactId>, "deal_to_contact");

```

Cheers

WL
