Create maintenance window
Creates a new maintenance window. Can be one-time or recurring.
POST
https://api.uptimetea.com/maintenance_windowsHeaders
AuthorizationREQUIRED
STRING
Bearer $TOKENContent-TypeREQUIRED
STRING
application/jsonResponse body
{
"id": "uuid",
"title": "Server Upgrade",
"description": "Upgrading database servers",
"start_time": "2024-01-20T02:00:00Z",
"end_time": "2024-01-20T04:00:00Z",
"recurrence_rule": null,
"active": false,
"created_at": "2024-01-15T10:00:00Z",
"watchers": []
}Code Examples
curl -X POST "https://api.uptimetea.com/maintenance_windows" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"maintenance_window": {
"title": "Server Upgrade",
"description": "Upgrading database servers",
"startTime": "2024-01-20T02:00:00Z",
"endTime": "2024-01-20T04:00:00Z",
"watcherIds": ["uuid1", "uuid2"]
}
}'