---
title: "Configure a Database Cluster's Maintenance Window"
method: PUT
path: "/v2/databases/{database_cluster_uuid}/maintenance"
tags: ["DigitalOcean-public.v2-new_Databases"]
---

# Configure a Database Cluster's Maintenance Window

`PUT /v2/databases/{database_cluster_uuid}/maintenance`

To configure the window when automatic maintenance should be performed for a database cluster, send a PUT request to `/v2/databases/$DATABASE_ID/maintenance`.
A successful request will receive a 204 No Content status code with no body in response.

## Path parameters

- `database_cluster_uuid` string, uuid, required

## Request body

- DatabaseMaintenanceWindow, nullable
  - `day` string, required — The day of the week on which to apply maintenance updates.
  - `hour` string, required — The hour in UTC at which maintenance updates will be applied in 24 hour format.
  - `pending` boolean — A boolean value indicating whether any maintenance is scheduled to be performed in the next window.
  - `description` string[] — A list of strings, each containing information about a pending maintenance update.

## Response `204`

The action was successful and the response body is empty.

## Other responses

- `401` — Authentication failed due to invalid credentials.
- `404` — The resource was not found.
- `429` — The API rate limit has been exceeded.
- `500` — There was a server error.
- `default` — There was an unexpected error.

---

[API](https://skmtc.net/digitalocean/apis/digitalocean-api.md) · [All operations](https://skmtc.net/digitalocean/apis/digitalocean-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/digitalocean/digitalocean-api/versions/cb3bf9b21459/schema)
