Skip to main content

Roll back to the previous Hoserva release and its snapshot

POST 

/settings/updates/rollback

Required role: admin. Only an account or token with the admin role can call this operation.

Example request
curl --request POST \
--header "Authorization: Bearer $HOSERVA_TOKEN" \
--header "Content-Type: application/json" \
--data @body.json \
"https://$HOSERVA_HOST:8008/api/v1/settings/updates/rollback"

Downloads the recorded previous version's .deb, verifies it against the signed SHA256SUMS naming that version, restores that version's pre-migration database snapshot, and installs the previous package. There are no down migrations — rollback is previous package plus its snapshot. Refused while a Parity, Array-write or Topology job is running; the error names that job.

Request​

Responses​

The rollback has been queued for install.