Upgrade a Valkey instance

Upgrade the instance to a newer Valkey version, at most one major version up. We create a snapshot first and upgrade once it's done. The upgrade can't be undone. To go back, restore the snapshot onto the instance. The upgrade is done when the instance is running on the new engine_version. When the instance is running on the old version, the upgrade failed.

POST https://{availability_zone}.betterstackcloud.com/v1/valkey/{id}/upgrade
id string required

The ID of the Valkey instance to upgrade.

Authorization string required

Bearer $TOKEN

Content-Type string

application/json

engine_version string required

The version to upgrade to, one of available_engine_versions.

202 Accepted
{
  "pre_upgrade_snapshot_id": "123456789"
}

Returns the Valkey instance.

pre_upgrade_snapshot_id string

The ID of the snapshot we created before the upgrade. Later responses don't include it.