APIs & Integrations

MarkusKlahn
Membro

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 Avaliação positiva
3 Respostas 3
MarkusKlahn
Membro

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 Avaliação positiva
webdew
Orientador(a) | Parceiro Diamante
Orientador(a) | Parceiro Diamante

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.

dennisedson
Equipe de Produto da HubSpot
Equipe de Produto da HubSpot

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 👍

0 Avaliação positiva