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",
},
)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_uuidstring requiredA unique identifier for a database cluster.
daystring requiredExample:
tuesdayThe day of the week on which to apply maintenance updates.
hourstring requiredExample:
14:00The hour in UTC at which maintenance updates will be applied in 24 hour format.
pendingboolean optional read-onlyExample:
TrueA boolean value indicating whether any maintenance is scheduled to be performed in the next window.
descriptionarray of strings optional read-onlyExample:
['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
More Information
See /v2/databases/{database_cluster_uuid}/maintenance in the API reference for additional detail on responses, headers, parameters, and more.