APIs & Integrations

MarkusKlahn
Member

Create notes V3 API

I need to create a note beeing pinned. There is currently no list of properties for a note given. So which property in a note must be filled upon creation to make the note pinned ?

 

There were some questions about this fact in the past but the old engagement API didn't support. I hope that you brought this feature with v3

0 Upvotes
MarkusKlahn
Member

Create notes V3 API

Thx a lot, this is the old API and the note is not pinned. Due to a recent timestamp the note is on top for period of time but not pinned

0 Upvotes
webdew
Guide | Diamond Partner
Guide | Diamond Partner

Create notes V3 API

Hi @MarkusKlahn ,

Use this api: and code : https://legacydocs.hubspot.com/docs/methods/engagements/create_engagement
var request = require("request");

var options = { method: 'POST',
url: 'https://api.hubapi.com/engagements/v1/engagements',
qs: { hapikey: 'demo' },
headers:
{'Content-Type': 'application/json' },
body:
{ engagement:
{ active: true,
ownerId: 1,
type: 'NOTE',
timestamp: 1409172644778 },
associations:
{ contactIds: [ 11877974 ],
companyIds: [],
dealIds: [],
ownerIds: [] },
attachments: [ { id: 4241968539 } ],
metadata: { body: 'note body' } },
json: true };

request(options, function (error, response, body) {
if (error) throw new Error(error);

console.log(body);
});

Hope this helps!
If we were able to answer your query, kindly help the community by marking it as a solution.
Thanks and Regard.

0 Upvotes
dennisedson
Community Manager
Community Manager

Create notes V3 API

@MarkusKlahn You can get the properties for notes with the properties endpoint

Presently, the pinned status is not exposed.  I have spoken with the team internally and they are looking to expose it.  Stay tuned 👍

Thanks,

Dennis




HubSpot Community Developer ShowMake sure to subscribe to our YouTube channel
where you can find the HubSpot Community Developer Show
0 Upvotes