mirror of
https://github.com/zadam/trilium.git
synced 2025-10-26 15:56:29 +01:00
docs(user): exporting a ZIP using curl & ETAPI (closes #4958)
This commit is contained in:
@@ -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"
|
||||
```
|
||||
Reference in New Issue
Block a user