I am trying to use the API to add a tag to a note but facing some issues.
I'm seeing this in the console
Uncaught (in promise) Error: Missing note ID
at Object.<anonymous> (C:\dev\joplin\packages\lib\services\rest\routes\tags.js:29)
at Generator.next (<anonymous>)
at fulfilled (C:\dev\joplin\packages\lib\services\rest\routes\tags.js:5)
But the command itself does contain the note id:
The API doc isn't very helpful here either
POST /tags/:id/notes
Post a note to this endpoint to add the tag to the note. The note data must at least contain an ID property (all other properties will be ignored).
This is how I call the API:
await joplin.data.post(['tags', message.tag.id, 'notes'], null, {
note: {
id: noteId
},
});
Appreciate any advice.