API method for upgrade

Hi,

would it be possible to expose an “upgrade” task via api ? The idea is to put in place a script in order to scheduled an upgrade of a number of syncthing instances. Thank you very much, best,

There’s both syncthing -upgrade and the REST call /rest/upgrade in the API.

Oops, I beg your pardon, I haven’t found it in the docs. Thank you very much!!

Eh, that’s apparently because I forgot to document them. Sorry about that! Added now to https://forum.syncthing.net/t/the-rest-interface/85