Upgrade a MySQL instance

Upgrade an instance to a newer MySQL version. We create a snapshot first, and restoring it is the only way back. The upgrade is done when the instance is running on the new engine_version. If the instance is back to running on its old version with a status_message, the upgrade failed.

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

The ID of the MySQL instance to upgrade.

Authorization string required

Bearer $TOKEN

Content-Type string

application/json

engine_version string required

The version to upgrade to, one of the instance's available_engine_versions.

202 Accepted
{
  "pre_upgrade_snapshot_id": "123456789"
}

Returns the MySQL instance.

pre_upgrade_snapshot_id string

The ID of the snapshot we created before the upgrade.