zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
27.2k stars 1.9k forks source link

How to set multiple property values at once using ETAPI #3284

Closed yingjialong closed 1 year ago

yingjialong commented 1 year ago

Describe feature

How to set multiple property values at once with ETAPI

Additional Information

No response

zadam commented 1 year ago

Hi, could you please specify in more detail what you want to do?

when you e.g. want to update a note, just send PATCH to the /etapi/notes/[noteId] with:

{
   "title": "new title",
   "type": "text"
}
yingjialong commented 1 year ago

I have created a note,and sent POST to the /etapi/attributes. but i had five attributes to need to set,i had to use the api 5 times.

zadam commented 1 year ago

I see, at this point there isn't a bulk endpoint to add/update multiple attributes at once.