pydo.databases.update_maintenance_window()

Generated on 8 May 2026 from pydo version v0.34.0

Usage

client.databases.update_maintenance_window(
    database_cluster_uuid="9cc10173-e9ea-4176-9dbc-a4cee4c4ff30",
    body={
        "day": "tuesday",
        "hour": "14:00",
    },
)
Returns NoneRaises HttpResponseError

Description

To configure the window when automatic maintenance should be performed for a database cluster, send a PUT request to /v2/databases/{database_cluster_uuid}/maintenance. 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.

day string required

Example: tuesday

The day of the week on which to apply maintenance updates.

hour string required

Example: 14:00

The hour in UTC at which maintenance updates will be applied in 24 hour format.

pending boolean optional read-only

Example: True

A boolean value indicating whether any maintenance is scheduled to be performed in the next window.

description array of strings optional read-only

Example: ['Update TimescaleDB to version 1.2.1', 'Upgrade to PostgreSQL 11.2 and 10.7 bugfix releases']

A list of strings, each containing information about a pending maintenance update.

Request Sample

Show Request Sample
import os
from pydo import Client

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

req = {
  "day": "tuesday",
  "hour": "14:00"
}

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

More Information

See /v2/databases/{database_cluster_uuid}/maintenance 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.