HubSpot CRM API activities creation with contact association

Our Application utilizes the following endpoint for creating activities (in our case, only tasks, calls and notes) :

https://legacydocs.hubspot.com/docs/methods/engagements/create_engagement .

According to following documentation: Associate activities with records , when we associate activities with contact, IN TH WEB PAGE it also associates them with last 5 deals.

However, when we try create activities for contacts through the API, only calls are getting associated with deals. Tasks and notes do not seem to get associated with deals, only contact.

NOTE: we specify association with contact by providing contactIds array with one contact id.

What would be great for is either:

Create calls without associating them with deals

OR

Creating tasks and notes with associations to deals

Is there any way to achieve either of those?

@Joe1111

You should check out the new engagements api. When you create an engagement with it, it is not associated with anything. Then you can associate it with whatever you want in a subsequent request