MongoDB Maintenance Windows API

Returns, edits, and removes maintenance windows. The maintenance procedure that MongoDB Cloud performs requires at least one replica set election during the maintenance window per replica set. You can defer a scheduled maintenance event for a project up to two times. Deferred maintenance events occur during your preferred maintenance window exactly one week after the previously scheduled date and time.

GitHub OpenAPI

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

DELETE /api/atlas/v2/groups/{groupId}/maintenanceWindow Reset a project's maintenance window · Reset One Maintenance Window for One Project #
Ask an LLM
“How do I clear the maintenance window for a project so it starts over?”
“Can I reset a project's maintenance window back to its default?”
Tell an agent destructive · confirm first
Reset the maintenance window for project {groupId}.
Clear the maintenance window settings of project {groupId}.
GET /api/atlas/v2/groups/{groupId}/maintenanceWindow Get a project's maintenance window · Return One Maintenance Window for One Project #
Ask an LLM
“When is the next maintenance window scheduled for my project?”
“Can I read the maintenance window settings for one project?”
Tell an agent
Show the maintenance window for project {groupId}.
Get the maintenance window settings of project {groupId}.
PATCH /api/atlas/v2/groups/{groupId}/maintenanceWindow Change a project's maintenance window · Update One Maintenance Window for One Project #
Ask an LLM
“How do I move my project's maintenance window to a different day and hour?”
“Can I set a maintenance window that protects certain hours?”
Tell an agent
Set the maintenance window for project {groupId} to start on day {dayOfWeek}.
Move project {groupId}'s maintenance window to start at hour {hourOfDay} on day {dayOfWeek}.
POST /api/atlas/v2/groups/{groupId}/maintenanceWindow/autoDefer Turn automatic maintenance deferral on or off · Toggle Automatic Deferral of Maintenance for One Project #
Ask an LLM
“How do I turn on automatic deferral of maintenance windows for a project?”
“Can I switch automatic maintenance deferral off for one project?”
Tell an agent
Toggle automatic maintenance deferral for project {groupId}.
Switch auto-deferral on or off for project {groupId}.
POST /api/atlas/v2/groups/{groupId}/maintenanceWindow/defer Defer a project's maintenance window · Defer One Maintenance Window for One Project #
Ask an LLM
“How do I push back the maintenance window for a project by one week?”
“Can I defer a project's maintenance window until after urgent patches are applied?”
Tell an agent
Defer the maintenance window for project {groupId}.
Postpone project {groupId}'s maintenance window by one week.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/mongodb:mongodb-maintenance-windows-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

mongodb-maintenance-windows-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mongodb Maintenance Windows API
  version: '2.0'
  license:
    name: CC BY-NC-SA 3.0 US
    url: https://creativecommons.org/licenses/by-nc-sa/3.0/us/
  termsOfService: https://www.mongodb.com/mongodb-management-service-terms-and-conditions
  x-refined-note:
  - x-xgen-sha differs across the merged source definitions and was not carried
  description: 'Operations tagged Maintenance Windows across 2 of this provider''s published API definitions: mongodb-atlas-openapi.yaml, mongodb-openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://cloud.mongodb.com
security:
- ServiceAccounts: []
- DigestAuth: []
tags:


# --- truncated at 32 KB (35 KB total) ---
# Full source: https://artifacts.apis.io/mongodb/openapi/mongodb-maintenance-windows-api-openapi.yml