A collection of methods related to the Engagements API
Methods
-
Create an engagement
Name Type Description optsobject Properties:
Name Type Description opts.engagementobject opts.associationsobject opts.metadataobject opts.attachmentsarray 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));