Save servers
Adds, changes, renames or removes servers in the config file. Protection: token. A field you leave out stays as it is. The key file of a server is not settable here. Moving a server to a new address returns a notice, because the new address is trusted the first time homebutler connects to it.
Authorizations
The token you start the server with: homebutler serve --token <token>, or web.token in the config file. Send it as Authorization: Bearer <token>. When the server has a token, every /api/ route except the CORS preflight requires it, reads included.
Body
application/jsonThe revision from Get config.
The servers to add, change or remove.
Response
200 · application/jsonThe servers were saved.
true.
The revision of the file as saved. Use it for the next save.
The processes that read this setting at start and need a restart to use it.
Things that are true about the save and worth knowing.