Unable to create engagements with the NodeJS v3 SDK

I’m using the official NodeJS v3 SDK and I can’t find a way to create engagements, specifically notes and tasks. There’s nothing in the docs about this, and even looking through the SDK source code I can’t find any references to creating engagments.

How can I achieve this with the latest version of the node SDK?

Hey @philiplindberg

Thanks for adding the question!

Going to bring in a smart fellow from the community to see if we can get you an answer

@kierana ! hello, friend! Do you have thoughts?

Thanks!!

d

In the examples folder you can get a rough idea of how to create an Engagement:

 const response = await hubspotClient.apiRequest({
 path: `/engagements/v1/engagements`,
 method: 'POST',
 body: payload,
})

Find more detail on what you need to supply as the body/etc:

Yep, that did it. Thanks!