POST /maintenance

Endpoint reference that opens and closes the site maintenance flag.

Reading time
3 min reading
Updating
Mar 2026

Endpoint

POST /sites/{site}/maintenance

Request Body

The controller validates the boolean active field. enabled or duration_minutes fields are not present in the current request validator.

JSON
{ "active": true }

Examples

ENABLE
curl -X POST https://status.anchoruptime.com/api/v1/sites/42/maintenance \ -H "Authorization: Bearer dku_a1b2c3d4_4f8b91c2e8d04b46a1d7f2aa6c93e5fd" \ -H "Content-Type: application/json" \ -d '{"active":true}'
DISABLE
curl -X POST https://status.anchoruptime.com/api/v1/sites/42/maintenance \ -H "Authorization: Bearer dku_a1b2c3d4_4f8b91c2e8d04b46a1d7f2aa6c93e5fd" \ -H "Content-Type: application/json" \ -d '{"active":false}'
JSON
{ "ok": true, "active": true }

Caution

Do not leave maintenance mode on.

This endpoint updates the maintenance_active field in the site record. Remember to send {"active":false} with the same endpoint when scheduled maintenance is finished.