UptimeTea

API Documentation

The UptimeTea API is easy to use and free for all plans.

Create maintenance window

Creates a new maintenance window. Can be one-time or recurring.

POST
https://api.uptimetea.com/maintenance_windows

Headers

Authorization
REQUIRED
STRING
Bearer $TOKEN
Content-Type
REQUIRED
STRING
application/json

Response 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"]
    }
  }'