UptimeTea

API Documentation

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

Update watcher

Updates an existing watcher.

PATCH
https://api.uptimetea.com/watchers/:id

Headers

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

Response body

{
  "id": "uuid",
  "title": "Updated Title",
  "category": "uptime",
  "url": "https://example.com",
  "status": "up",
  "tags": ["production", "updated"],
  "last_checked_at": "2024-01-15T10:30:00Z",
  "uptime_percentage": 99.5,
  "consecutive_failures": 0,
  "in_maintenance": false,
  "created_at": "2024-01-01T00:00:00Z",
  "updated_at": "2024-01-15T10:30:00Z"
}

Code Examples

curl -X PATCH "https://api.uptimetea.com/watchers/<watcher_id>" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Updated Title",
    "tags": ["production", "updated"]
  }'