Unable to create engagements with the NodeJS v3 SDK

SOLVE
philiplindberg
Member

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

Accepted Solutions
kierana
Solution
Contributor

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
dennisedson
Community Manager

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

 

Thanks,

Dennis


We are excited to announce that the Community will be launching a weekly newsletter on November 2, 2020!
Sign up today!
0 Upvotes
kierana
Solution
Contributor

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

philiplindberg
Member

Yep, that did it. Thanks!

0 Upvotes