Domains
Set the uptime check's HTTP options
Turn the 5-minute uptime probe into an HTTP or API check: a path on the website, the method, request headers (a bearer token, an API key), the status codes that count as up, text the body must contain, and a response-time limit. Without options the probe requests the root over GET, with 2xx and 3xx up, 4xx a warning and 5xx down. A failing probe — the wrong status, missing text, or a response over the limit — is confirmed by a second probe before any rule fires; a response over the limit fires the http_slow trigger rather than http_down. Replaces any previous options and probes immediately.
put/v1/domains/{id}/http
Request
- Base URL: https://api.upcheck.so
- URL: https://api.upcheck.so/v1/domains/{id}/http
- Auth: HTTP bearer
Path parameters
idstring required
Example:9b1d...
Opaque identifier.
Request body
Example request
{
"path": "/checkout",
"headers": {
"Authorization": "Bearer hc_...",
"Accept": "application/json"
},
"expectedStatuses": [
200
],
"bodyContains": "\"status\":\"ok\"",
"maxResponseMs": 2000
}Response
The uptime monitor after the first probe.
Example response
{
"id": "9b1d...",
"organizationId": "9b1d...",
"domainId": "9b1d..."
}Changes
No recorded changes to this operation across all 1 revision of this API.