Rest API create note in notebook

with the API i create a note:
curl --data '{ "title": "My note", "body": "Some note in Markdown"}' http://localhost:41184/notes
but how do I specify a specific notebook?
Thanks!

Hi, you need the notebook id.

 { "title": "My note", "parent_id": "notebook_id", "body": "Some note in Markdown" }
1 Like

Thank you for the quick answer. Where can I find the notebook_id and parent_id?

The parten_id is the notebook id. You can get the id with the API.

What is the syntax for reading the contents of a single note?