Set the quiet hours window
PUT/notifications/quiet-hours
Required role: admin. Only an account or token with the admin role can call this operation.
Example request
curl --request PUT \
--header "Authorization: Bearer $HOSERVA_TOKEN" \
--header "Content-Type: application/json" \
--data @body.json \
"https://$HOSERVA_HOST:8008/api/v1/notifications/quiet-hours"
criticalAlwaysDelivers is not part of the request body: the override that makes critical alerts always deliver cannot be disabled, so there is nothing for a client to set — the response always reports it true.
Request
Responses
- 200
- default
The updated quiet hours configuration.
An error response.