---
title: "Set Maintenance"
method: POST
path: "/admin/site/maintenance"
---

# Set Maintenance

`POST /admin/site/maintenance`

## Request

- Base URL: `https://safefamilyapp.com` (the document declares no server; this is the origin it was published from)
- URL: `https://safefamilyapp.com/admin/site/maintenance`
- Auth: HTTP bearer

Close the site for maintenance, with a message in the admin's words, or open it again.

## Request body

- MaintenanceUpdate
  - `on` boolean, required
  - `message` string

## Response `200`

Successful Response

- SiteStatus
  - `maintenance` MaintenanceState: Whether the site is closed for maintenance, as the public sees it.
    - `on` boolean
    - `message` string
    - `since` string, date-time, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/safefamilyapp/apis/otri-api.md) · [All operations](https://skmtc.dev/safefamilyapp/apis/otri-api/llms.txt) · [OpenAPI document](https://skmtc.dev/safefamilyapp/apis/otri-api/revisions/d07bb03cb836?raw)
