Associate a deal with another object - 400

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) :

{
 "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 ?

i found the solution for it :grinning_face:

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

Thanks for adding your solution, @ogefen :+1: