Namespace: hs/engagements

hs/engagements

A collection of methods related to the Engagements API

Methods

hs/engagements.create (opts)Promise asyncstatic

Create an engagement

Name Type Description
opts object
Properties:
Name Type Description
opts.engagement object
opts.associations object
opts.metadata object
opts.attachments array
Returns:
Type Description
Promise
Example
const hs = new HubspotClient(props);
const newEngagementOpts = {
engagement: {
  type: 'NOTE',
  active: true,
  timestamp: new Date().getTime()
},
associations: {
  companyIds: [53333385]
},
metadata: {
  body: 'A note about robot'
}
};
hs.engagements.create(newEngagementOpts).then(response => console.log(response));