Update watcher
Updates an existing watcher.
PATCH
https://api.uptimetea.com/watchers/:idHeaders
AuthorizationREQUIRED
STRING
Bearer $TOKENContent-TypeREQUIRED
STRING
application/jsonResponse 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"]
}'