Update a website's maintenance mode
Turns a website’s WordPress maintenance mode on or off and customizes the page visitors see while it is on. Send only the fields you want to change.
The change reaches WordPress through the Modular Connector plugin a moment later: the answer confirms the request was stored and queued, not that the website has already switched. While maintenance mode is on the website’s connection status is maintaining; turning it off also re-verifies the connection in the background. Returns the same document as “Retrieve a website’s maintenance mode settings”.
The four customization fields depend on your plan: an organization whose plan does not include them can still change status.
Body
status(enabledordisabled, optional): turns maintenance mode on or off.noindex(boolean, optional): whether search engines are told not to index the maintenance page.background(string, optional): a hex color for the page background.title(string, optional): the page title, at most 70 characters.description(string, optional): the message shown to visitors, at most 250 characters.
Errors
- 422:
noindex,background,titleordescriptionis sent while your plan does not include them.
Authentication
Personal access token created in the Modular DS dashboard; read-only tokens can only call GET endpoints.
Path parameters
Request
Response
200 - Maintenance updated
