Update maintenance mode
Turn maintenance mode on or off for an application and optionally set a custom maintenance page URL. While enabled, every request to every domain of the application gets the maintenance page with status 503 and a Retry-After header instead of reaching the application. There are no path, method or visitor exceptions, and IP restrictions still apply first. The application keeps running and deployments still work. The change is written to the edge synchronously but can take up to 5 minutes to reach every location. Returns the updated state.
Authorizations
API key authentication. Pass your API key as a Bearer token in the Authorization header.
Path Parameters
Application identifier
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"fb5e5168-4281-4bec-94c5-0d1584e9e657"
Body
Whether maintenance mode should be active. When true, every request to every domain of the application receives the maintenance page with status 503. The application keeps running and can still be deployed while in maintenance mode.
true
HTTPS URL of a page to serve as the maintenance page, for example a Sevalla static site. The edge fetches the page body and serves it on every domain of the application with status 503, so visitors never see this URL. When null the default Sevalla maintenance page is served. Content changes on the page take up to 60 seconds to show. Must start with https:// and be at most 2048 characters. This is a full replace: when omitted or null, any previously set page URL is cleared and the default page is served.
2048"https://status.example.com"
Response
Default Response
Whether maintenance mode is currently active. When true, every request to every domain of the application receives the maintenance page with status 503 instead of reaching the application.
false
HTTPS URL of a page to serve as the maintenance page, for example a Sevalla static site. The edge fetches the page body and serves it on every domain of the application with status 503, so visitors never see this URL. When null the default Sevalla maintenance page is served. Content changes on the page take up to 60 seconds to show.
"https://status.example.com"