Skip to main content

Set UPS / NUT settings

PUT 

/settings/ups

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/settings/ups"

Persists UPS settings to SQLite, generates the NUT configuration, and reloads the NUT units. Passwords are write-only: omit to keep an existing secret; a first configure must supply the password the connection mode needs. USB-only thresholds are ignored for network mode. Validation failures return 400; unmanaged or existing host NUT files and a missing nut group return 409.

Request​

Responses​

The updated UPS settings.