How to add a note to the database

I would like to add a note using another app, not the regular hedgedoc app. I want to write to the database tables.
What is the minimum that needs to be added to the db? Notes table, other tables?

I already tried:

I have tried to add recordes to the database but I can’t figure out how to get it to show on that users history page.

I think I can try to hedgedoc cli to lean how it adds a record using curl.

Hello @dgleba,

I think the cli is the best way, if you don’t want to program something on your own.
Please be aware that you should be logged if you want to be able to delete the note or change the permissions of the note afterwards.

Greetings,
DerMolly