A collection of methods related to the Engagements API
Methods
-
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));