Skip to main content

Save notification channels

PUT/api/config/notify

Sets or removes notification channels in the config file. Protection: token. Each key of channels is a channel name from notify in Get config. Send a secret as {"value": "..."} to set it or {"clear": true} to remove it. A secret you leave out stays as it is. An empty value clears it.

Authorizations

Authorizationstringheaderrequired

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/json
revisionstringrequired

The revision from Get config.

channelsobjectrequired

The channels to change, by name.

Response

200 · application/json

The channels were saved.

savedbooleanrequired

true.

revisionstringrequired

The revision of the file as saved. Use it for the next save.

restart_neededstring[]

The processes that read this setting at start and need a restart to use it.

noticesstring[]

Things that are true about the save and worth knowing.