> For the complete documentation index, see [llms.txt](https://docs.hostinger.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hostinger.com/api-reference/endpoints/wordpress/maintenance/toggle-maintenance-mode.md).

# Toggle maintenance mode

Enable or disable maintenance mode for the specified WordPress installation, based on the enabled flag.

{% openapi src="<https://developers.hostinger.com/openapi/openapi.json>" path="/api/hosting/v1/accounts/{username}/wordpress/{software}/maintenance/toggle" method="patch" %}
<https://developers.hostinger.com/openapi/openapi.json>
{% endopenapi %}
