API calls to add rows to DB?

Hi,

Im trying to use curl to add a new entry to a database, and have got it working. But it first requires me to add a block to the parent id. Which clutters up the page the database lives on. And then i can add it to the database.

Is there a simple API call to add entries to a database that also includes setting attributes directly?

I've got the basics down but it seems convoluted and inefficient.

Anyone else struggling with the api?

    Welcome to here!

    Here we can learn from each other how to use SiYuan, give feedback and suggestions, and build SiYuan together.

    Signup About
    Please input reply content ...