We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Jan 14, 2022 4:52 AM
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
Jan 17, 2022 3:31 AM
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
Jan 17, 2022 3:22 AM
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.
Jan 14, 2022 1:55 PM
@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 👍
![]() | Make sure to subscribe to our YouTube channel where you can find the HubSpot Community Developer Show |