I am wondering what the raw REST API call equivalent is for the below shell command
syncthing cli config folders <folderid> paused set true
Thank you
I am wondering what the raw REST API call equivalent is for the below shell command
syncthing cli config folders <folderid> paused set true
Thank you
I found this post which says
You need to send a
PATCH
to/rest/config/folders/id
, where you replaceid
with the id of your folder and as data payload you send{"paused": true}
I will try it
It works
curl 2>/dev/null \
-X PATCH \
-H "X-API-Key: <apikey>" \
-d '{ "paused": true }' \
"http://127.0.0.1:8384/rest/config/folders/<folderid>"
unpause
curl 2>/dev/null \
-X PATCH \
-H "X-API-Key: <apikey>" \
-d '{ "paused": false }' \
"http://127.0.0.1:8384/rest/config/folders/<folderid>"