hosting
PATCH /v1/uptime/monitors/{monitor_id}
Pause, resume or rename a monitored address.
Authenticatie
Stuur een API-sleutel mee als bearer token. Dit eindpunt vermeldt geen specifieke toestemming in de specificatie, dus geef uw sleutel de minimale rechten die nodig zijn en controleer het antwoord in plaats van zomaar wat aan te nemen.
Dit eindpunt vereist geen organisatie-id. Uw sleutel identificeert al de organisatie waartoe deze behoort, en het antwoord is hierop afgestemd.
Probeer het
Vervang alles tussen punthaakjes door uw eigen waarden en de sleutelplaatsvervanger door een sleutel uit uw dashboard.
curl -X PATCH https://api.zinndigital.com/v1/uptime/monitors/{monitor_id} \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ }'Ingelogd? De API-console in je dashboard vult je echte organisatie-id en je eigen sleutel in, en voert het verzoek uit tegen de live API zodat je de daadwerkelijke respons kunt zien. Open dit eindpunt in de API-console
Details
Gated on `uptime.manage`. ⛔ The **URL cannot be changed**: a monitor's Core Web Vitals readings are joined back to it by that canonical string, so a mutable URL would silently re-point a monitor at another address's history. Change an address by deleting the monitor and adding another. Pausing closes any open incident, so a paused monitor cannot accrue an outage out of us not looking.
Parameters
| Naam | Type | Verplicht | Wat dit is |
|---|---|---|---|
monitor_id (path) | string | Ja | — |
Aanvraaglichaam
| Naam | Type | Verplicht | Wat dit is |
|---|---|---|---|
enabled | boolean | Nee | Pause or resume. Pausing closes any open incident. |
name | string | Nee | — |
Reactie
| Naam | Type | Verplicht | Wat dit is |
|---|---|---|---|
id | string | Ja | — |
url | string | Ja | — |
name | string | Nee | — |
state | string<unknown, up, down, paused> | Ja | ⛔ `unknown` is a real state and is not a synonym for `up` — it means "not checked yet" and is excluded from every uptime percentage. |
enabled | boolean | Ja | — |
expect_text | string | Nee | — |
site_id | string | Nee | Set only when the address happens to be one of this organisation's own sites. Navigation only — the monitor works identically without it, and must, because the product exists to… |
last_result_at | string | Nee | — |
last_up_at | string | Nee | — |
last_down_at | string | Nee | — |
created_at | string | Ja | — |
summary | UptimeSummary | Nee | — |
history | UptimeHistoryPoint[] | Nee | — |
incidents | UptimeIncident[] | Nee | — |
vitals | UptimeVitalsPoint[] | Nee | — |
migration_offer | UptimeMigrationOffer | Nee | — |
Fouten die dit eindpunt kan retourneren
401 · 403 · 404