pydo.databases.update_major_version()

Generated on 7 Jul 2026 from pydo version v0.39.0

Usage

client.databases.update_major_version(
    database_cluster_uuid="9cc10173-e9ea-4176-9dbc-a4cee4c4ff30",
    body={
        "version": "8",
    },
)
Returns NoneRaises HttpResponseError

Description

To upgrade the major version of a database, send a PUT request to /v2/databases/{database_cluster_uuid}/upgrade, specifying the target version. A successful request will receive a 204 No Content status code with no body in response.

Parameters

database_cluster_uuid string required

A unique identifier for a database cluster.

version string optional

Example: 8

A string representing the version of the database engine in use for the cluster.

Request Sample

Show Request Sample
import os
from pydo import Client

client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))

req = {
  "version": "14"
}

update_resp = client.databases.update_major_version(database_cluster_uuid="a7a8bas", body=req)

More Information

See /v2/databases/{database_cluster_uuid}/upgrade in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.