Update site maintenance

View as MarkdownOpen in Claude
Turns the site's WordPress maintenance mode on or off and updates its customization. All fields are optional (`sometimes`): `status` (`on` / `off`), `noindex` (boolean), `background` (hex color), `title` (max 70) and `description` (max 250). The four customization fields are plan-gated: an organization without the maintenance permission in its plan may still toggle `status`, but sending any customization field answers 422. Answers 200 with the same extended `sites` document as `Show site maintenance`, reflecting the stored settings. The change is propagated to WordPress asynchronously through the connector — the response confirms the request was stored and queued, not that the site already switched. Disabling maintenance also re-verifies the site connection in the background. Read-only tokens answer 403; sites of other organizations answer 404. The MCP twin of this endpoint is the `sites-maintenance-update` tool.

Authentication

AuthorizationBearer

Personal access token created in the Modular DS dashboard; read-only tokens can only call GET endpoints.

Path parameters

sitestringRequired

Request

This endpoint expects an object.
backgroundstringOptional
descriptionstringOptional
noindexbooleanOptional
statusstringOptional
titlestringOptional

Response

200 - Maintenance updated

dataobjectOptional
jsonapiobjectOptional