Website configuration
Update Maintenance Window
Updates an existing maintenance window.
PATCH /api/maintenance-windows/:id
Authentication
Requires a valid session.
- Header:
Authorization: Bearer <token>
Note: Global supporter users are not allowed to update maintenance windows (403). Read-only users are allowed.
Parameters
id(Path, required): Maintenance window ID.
Request Body
All fields are optional.
{
"name": "Server Upgrade (updated)",
"description": null,
"startTime": "2026-02-25T02:00:00.000Z",
"endTime": "2026-02-25T04:00:00.000Z",
"isRecurring": true,
"recurrencePattern": {
"frequency": "weekly",
"interval": 1,
"daysOfWeek": [1]
},
"isActive": true
}Notes:
- You cannot change the target IDs (
websiteId,icmpMonitorId, ...). Only the window fields can be updated. descriptioncan be set tonullto clear it.- If you update
startTimeand/orendTime,endTimemust be afterstartTime.
Example (cURL)
BASE_URL="https://uptimeify.io"
TOKEN="<your-api-token>"
curl -X PATCH \
"$BASE_URL/api/maintenance-windows/5" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Server Upgrade (updated)","description":null,"startTime":"2026-02-25T02:00:00.000Z","endTime":"2026-02-25T04:00:00.000Z","isRecurring":true,"recurrencePattern":{"frequency":"weekly","interval":1,"daysOfWeek":[1]},"isActive":true}'Example Response
{
"id": 5,
"websiteId": 101,
"icmpMonitorId": null,
"smtpMonitorId": null,
"sshMonitorId": null,
"ftpMonitorId": null,
"imapPopMonitorId": null,
"customerId": 12,
"name": "Server Upgrade (updated)",
"description": null,
"startTime": "2026-02-25T02:00:00.000Z",
"endTime": "2026-02-25T04:00:00.000Z",
"isRecurring": true,
"recurrencePattern": {
"frequency": "weekly",
"interval": 1,
"daysOfWeek": [1]
},
"isActive": true,
"createdBy": "<user-id>",
"createdAt": "2026-02-20T10:00:00.000Z",
"updatedAt": "2026-02-21T11:00:00.000Z"
}Common Errors
400 Invalid maintenance window IDif:idis invalid400 End time must be after start timeif you update the time range to an invalid value401 Unauthorizedif you are not authenticated403 Forbiddenif you do not have access404 Maintenance window not foundif the maintenance window does not exist