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. Requests that reach the application through a Sevalla load balancer get the maintenance page too, and the load balancer does not send them to another destination. The application keeps running and deployments still work. The switch is applied to the application’s routes in the background and takes effect within a minute, usually in about 10 seconds. Turning it on also purges the cache of the application, so cached pages stop showing. Subdomains served through a wildcard domain are not purged, so cached pages on them can show until they expire. Returns the updated state.
Authorizations
Path Parameters
Body
HTTPS URL of a page to serve as the maintenance page, for example a Sevalla static site or another Sevalla application. The content of the page is served on every domain of the application with status 503, and visitors stay on the address they opened. When null the default maintenance page is served. The page must be public, because it is fetched without cookies, and at most 1 MB. Up to 4 redirects to other HTTPS addresses are followed. The whole page must arrive within 3 seconds, redirects included. If it is slower, returns an error or cannot be reached, the default page is served and the page is tried again after 60 seconds. A visitor can wait up to 3 seconds while the page is fetched. Content changes on the page take up to 60 seconds to show. The URL must start with https:// and a domain name without a port, username or password, be at most 2048 characters long and contain only A-Z, a-z, 0-9 and -._~:/?#[]@!&()*+,;=% (percent-encode anything else). 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
HTTPS URL of a page to serve as the maintenance page, for example a Sevalla static site or another Sevalla application. The content of the page is served on every domain of the application with status 503, and visitors stay on the address they opened. When null the default maintenance page is served. The page must be public, because it is fetched without cookies, and at most 1 MB. Up to 4 redirects to other HTTPS addresses are followed. The whole page must arrive within 3 seconds, redirects included. If it is slower, returns an error or cannot be reached, the default page is served and the page is tried again after 60 seconds. A visitor can wait up to 3 seconds while the page is fetched. Content changes on the page take up to 60 seconds to show.
"https://status.example.com"