APIs & Integrations

philiplindberg
Member

Unable to create engagements with the NodeJS v3 SDK

SOLVE

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?

0 Upvotes
1 Accepted solution
kierana
Solution
Contributor

Unable to create engagements with the NodeJS v3 SDK

SOLVE

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,
})

 

https://github.com/HubSpot/hubspot-api-nodejs/blob/391b51479fbafae81678e55d9027038a3e9edf21/sample-a...

 

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

 

https://legacydocs.hubspot.com/docs/methods/engagements/engagements-overview

View solution in original post

3 Replies 3
kierana
Solution
Contributor

Unable to create engagements with the NodeJS v3 SDK

SOLVE

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,
})

 

https://github.com/HubSpot/hubspot-api-nodejs/blob/391b51479fbafae81678e55d9027038a3e9edf21/sample-a...

 

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

 

https://legacydocs.hubspot.com/docs/methods/engagements/engagements-overview

philiplindberg
Member

Unable to create engagements with the NodeJS v3 SDK

SOLVE

Yep, that did it. Thanks!

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

Unable to create engagements with the NodeJS v3 SDK

SOLVE

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

 

0 Upvotes