Create Engagement API

Hi I am creating a meeting between the 2 contacts and while creating I am not passing any deal_ids with associations but still, it creates the multiple deal_ids in the associations.
for example, X books a meeting with Y and when I call the API to create the meeting I don’t see any deal association made through API but when I check the UI I see that there are 5 deals associated with meeting and those 5 deals are of Y’s last 5 deals with other contacts.
here’s the Hubspot response which I got when created the meeting through API.
{
“associationCreateFailures”:[
],
“engagement”:{
“id”:23761526161,
“portalId”:7172738,
“active”:true,
“createdAt”:1658330240907,
“lastUpdated”:1658330240907,
“ownerId”:0012300,
“type”:“MEETING”,
“uid”:“70r2kc2hjhyjkrfxif”,
“timestamp”:1658331000000,
“allAccessibleTeamIds”:[
],
“bodyPreview”:“no description”,
“queueMembershipIds”:[
],
“bodyPreviewIsTruncated”:false,
“bodyPreviewHtml”:“<html>\n <head></head>\n <body>\n no description\n </body>\n</html>”
},
“associations”:{
“contactIds”:[
2851,
8501
],
“companyIds”:[
],
“dealIds”:[
],
“ownerIds”:[
],
“workflowIds”:[
],
“ticketIds”:[
],
“contentIds”:[
],
“quoteIds”:[
]
},
“attachments”:[
],
“scheduledTasks”:[
],
“metadata”:{
“startTime”:1658331000000,
“endTime”:1658331900000,
“title”:“Referral Meeting”,
“body”:“no description”,
“source”:“CRM_UI”,
“preMeetingProspectReminders”:[
],
“meetingOutcome”:“SCHEDULED”,
“attendeeOwnerIds”:[
]
}
}

Can anyone please tell me what exactly is happening here.

Hey, @PJha9 :waving_hand: To clarify, this is the expected behaviour. Activities, including meetings, for Contacts will always be associated with the 5 most recent open deals. This knowledge base article covers the underlying logic — Associate activities with records.

This is not something that can be changed, as it is built into the tool. If you have a moment, I found this recent Ideas thread requesting the ability to control this automatic association behaviour — Choose to allow automatic association of activities between records.

Best,

Jaycee