POST/v1/maintenance-windows/{maintenance_uuid}/complete

Complete a maintenance window

Immediately ends an in-progress maintenance window by setting its end date to now and deactivating it. The maintenance record is preserved with the updated end date.

💡Usage

Use this endpoint to cleanly end a maintenance window once your work is done, rather than waiting for it to expire. This is ideal for deployment scripts and automation. Cannot be used on maintenance windows that have not started yet.

Request

Path Parameters
uuidstringrequired
The unique identifier of the maintenance window to complete
Example:"mw_ot0dguXcrUnB2b"

Response

Returns a success message and the updated end date.

RequestcURL
curl -X POST https://api.hyperping.io/v1/maintenance-windows/mw_ot0dguXcrUnB2b/complete \
  -H "Authorization: Bearer ${API_TOKEN}"
200 OKJSON
{
  "message": "Ok",
  "end_date": "2025-05-18T15:10:00.000Z"
}