Skip to Content
SeyloDocs
API referenceMaintenance pages

Set a service's maintenance page

POST
/api/v1/maintenance.set

Turns a service's maintenance mode on or off and sets its own page or message. Fields left out keep their value; html null falls back to the global page. Takes effect on the node right away, without a deploy.

Needs services.edit on the service (a grant on its project covers it). Available to MCP clients and the assistant.

Authorization

cookieseylo_session<token>

Request Body

application/json
  1. body
serviceId*string

Panel-issued id.

Match^[a-z0-9]{16}$
enabled?boolean
message?string

Short text shown on the default page.

Lengthlength <= 500
html?|null

Response Body

Success.

application/json
  1. response
serviceId*string

Panel-issued id.

Match^[a-z0-9]{16}$
enabled*boolean
message*string
html*|null
pageSource*string|string|string
globalEnabled*boolean
updatedAt*|null
Example Request
curl -X POST 'https://example.com/api/v1/maintenance.set' \  -H 'Content-Type: application/json' \  -d '{  "serviceId": "string"}'
Example Response
{  "serviceId": "string",  "enabled": true,  "message": "string",  "html": "string",  "pageSource": "service",  "globalEnabled": true,  "updatedAt": "2019-08-24T14:15:22Z"}