UptimeTea

API Documentation

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

Update incident status

Updates an incident status. Valid statuses: open, acknowledged, resolved.

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

Headers

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

Response body

{
  "id": "uuid",
  "watcher_id": "uuid",
  "watcher": {
    "id": "uuid",
    "title": "My Website",
    "url": "https://example.com",
    "category": "uptime"
  },
  "status": "resolved",
  "description": "Website monitor 'My Website' is down",
  "started_at": "2024-01-15T10:00:00Z",
  "acknowledged_at": "2024-01-15T10:05:00Z",
  "resolved_at": "2024-01-15T11:00:00Z",
  "duration": 3600,
  "created_at": "2024-01-15T10:00:00Z"
}

Code Examples

curl -X PATCH "https://api.uptimetea.com/incidents/<incident_id>" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "incident": {
      "status": "resolved"
    }
  }'