# Associate a deal with another object - 400

**URL:** <https://community.hubspot.com/t/associate-a-deal-with-another-object-400/30830>\
**Category:** APIs & Integrations\
**Tags:** free\
**Created:** [January 27, 2021, 8:08am UTC](https://community.hubspot.com/t/associate-a-deal-with-another-object-400/30830 "2021-01-27T08:08:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ogefen](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ogefen/32/95715_2.png) [@ogefen](https://community.hubspot.com/u/ogefen)\
**Post date:** [January 27, 2021, 8:08am UTC](https://community.hubspot.com/t/associate-a-deal-with-another-object-400/30830/1 "2021-01-27T08:08:58Z")

</div>

hi,

i’m tring to associate between Contact to Deal:

`https://api.hubapi.com/crm/v3/objects/deals/{dealId}/associations/Contacts/{contactId}/%20Contacts%20to%20Deals?hapikey={hapikey}`

and im geting this response (status 400) :

```lia-code-sample
{
 "status": "error",
 "message": " Contacts to Deals is not a valid association type between deals and contacts",
 "correlationId": "c3383fa8-8ad1-42a7-98ba-2c3ee2be9a56",
 "context": {
 "type": [
 " Contacts to Deals"
 ],
 "fromObjectType": [
 "deals"
 ],
 "toObjectType": [
 "contacts"
 ]
 },
 "category": "VALIDATION_ERROR",
 "subCategory": "crm.associations.INVALID_ASSOCIATION_TYPE"
}

```

what do i do wrong ?

---

<div class="post-metadata">

**Author:** ![ogefen](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ogefen/32/95715_2.png) [@ogefen](https://community.hubspot.com/u/ogefen)\
**Post date:** [January 28, 2021, 10:39am UTC](https://community.hubspot.com/t/associate-a-deal-with-another-object-400/30830/2 "2021-01-28T10:39:13Z")

</div>

i found the solution for it 😀

`https://api.hubapi.com/crm/v3/objects/deals/{dealId}/associations/Contacts/{contactId}/3`

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [January 28, 2021, 4:27pm UTC](https://community.hubspot.com/t/associate-a-deal-with-another-object-400/30830/3 "2021-01-28T16:27:28Z")

</div>

Thanks for adding your solution, @ogefen 👍
