rsdo 0.1.20260901

A Rust client library for the DigitalOcean API v2
Documentation
operationId: databases_update_maintenanceWindow

summary: Configure a Database Cluster's Maintenance Window

description: >-
  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.

tags:
  - Databases

parameters:
  - $ref: 'parameters.yml#/database_cluster_uuid'

requestBody:
  required: true
  content:
    application/json:
      schema:
        $ref: 'models/database_maintenance_window.yml'
      example:
        day: tuesday
        hour: '14:00'

responses:
  '204':
    $ref: '../../shared/responses/no_content.yml'

  '401':
    $ref: '../../shared/responses/unauthorized.yml'

  '404':
    $ref: '../../shared/responses/not_found.yml'

  '429':
    $ref: '../../shared/responses/too_many_requests.yml'

  '500':
    $ref: '../../shared/responses/server_error.yml'

  default:
    $ref: '../../shared/responses/unexpected_error.yml'

x-codeSamples:
  - $ref: 'examples/curl/databases_update_maintenanceWindow.yml'
  - $ref: 'examples/go/databases_update_maintenanceWindow.yml'
  - $ref: 'examples/python/databases_update_maintenanceWindow.yml'

security:
  - bearer_auth:
    - 'database:update'