---
title: "Enable or disable maintenance mode"
method: POST
path: "/setup/api/maintenance"
tags: ["enterprise-admin"]
---

# Enable or disable maintenance mode

`POST /setup/api/maintenance`

**Note:** The request body for this operation must be submitted as `application/x-www-form-urlencoded` data. You can submit a parameter value as a string, or you can use a tool such as `curl` to submit a parameter value as the contents of a text file. For more information, see the [`curl` documentation](https://curl.se/docs/manpage.html#--data-urlencode).

## Response `200`

Response

- MaintenanceStatus
  - `status` string
  - `scheduled_time` string
  - `connection_services` object[]
    - `name` string, required
    - `number` integer, required

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-6.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-6/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-6/versions/15db3fa0759b/schema)
