hosting

PATCH /v1/uptime/monitors/{monitor_id}

Pause, resume or rename a monitored address.

Alle hosting-eindpunten

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

NaamTypeVerplichtWat dit is
monitor_id (path)stringJa

Aanvraaglichaam

NaamTypeVerplichtWat dit is
enabledbooleanNeePause or resume. Pausing closes any open incident.
namestringNee

Reactie

NaamTypeVerplichtWat dit is
idstringJa
urlstringJa
namestringNee
statestring<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.
enabledbooleanJa
expect_textstringNee
site_idstringNeeSet 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_atstringNee
last_up_atstringNee
last_down_atstringNee
created_atstringJa
summaryUptimeSummaryNee
historyUptimeHistoryPoint[]Nee
incidentsUptimeIncident[]Nee
vitalsUptimeVitalsPoint[]Nee
migration_offerUptimeMigrationOfferNee

Fouten die dit eindpunt kan retourneren

401 · 403 · 404