docs(user): exporting a ZIP using curl & ETAPI (closes #4958)

This commit is contained in:
Elian Doran
2025-10-13 17:27:43 +03:00
parent 8c1914359a
commit 985a54edd1
2 changed files with 23 additions and 9 deletions

View File

@@ -61,4 +61,12 @@ Make sure to replace the values of:
* `TOKEN` with your ETAPI token.
* `SERVER` with the correct protocol, host name and port to your Trilium instance.
* `NOTE_ID` with an existing note ID to download.
* `NOTE_ID` with an existing note ID to download.
As another example, to obtain a .zip export of a note and place it in a directory called `out`, simply replace the last statement in the script with:
```
curl -H "Authorization: $TOKEN" \
-X GET "$SERVER/etapi/notes/$NOTE_ID/export" \
--output "out/$NOTE_ID.zip"
```