Skip to main content
PUT
Update maintenance mode

Authorizations

Authorization
string
header
required

API key authentication. Pass your API key as a Bearer token in the Authorization header.

Path Parameters

id
string<uuid>
required

Application identifier

Pattern: ^([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)$
Example:

"fb5e5168-4281-4bec-94c5-0d1584e9e657"

Body

application/json
is_enabled
boolean
required

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.

Example:

true

page_url
string | null

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.

Maximum string length: 2048
Example:

"https://status.example.com"

Response

Default Response

is_enabled
boolean
required

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.

Example:

false

page_url
string | null
required

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.

Example:

"https://status.example.com"