{ "opencollection": "1.0.0", "info": { "name": "GitHub Setup Maintenance API", "version": "1.1.4" }, "items": [ { "info": { "name": "Maintenance", "type": "folder" }, "items": [ { "info": { "name": "GitHub Get the Maintenance Status", "type": "http" }, "http": { "method": "GET", "url": "{protocol}://{hostname}/api/v3/setup/api/maintenance" }, "docs": "The GitHub Setup API endpoint `/setup/api/maintenance` using the GET method retrieves the current maintenance status of a GitHub Enterprise Server instance. This operation allows administrators and monitoring systems to programmatically check whether the server is currently in maintenance mode, which is useful for coordinating deployments, upgrades, or troubleshooting activities. The endpoint returns information about the maintenance state, helping teams understand if the instance is available f" }, { "info": { "name": "GitHub Enable or Disable Maintenance Mode", "type": "http" }, "http": { "method": "POST", "url": "{protocol}://{hostname}/api/v3/setup/api/maintenance", "body": { "type": "form-urlencoded", "data": [ { "name": "maintenance", "value": "" } ] } }, "docs": "**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)." } ] } ], "bundled": true }