hosting

PATCH /v1/uptime/monitors/{monitor_id}

Pause, resume or rename a monitored address.

Toate punctele finale hosting

Autentificare

Trimiteți o cheie API ca token de tip bearer. Acest punct final nu specifică o permisiune anume în specificație, așa că acordați cheii cele mai puține drepturi necesare și verificați răspunsul în loc să faceți presupuneri.

Acest endpoint nu necesită un ID de organizație. Cheia ta identifică deja organizația căreia îi aparține, iar răspunsul este limitat la aceasta.

Încearcă

Înlocuiți tot ce se află între paranteze unghiulare cu propriile valori și substituentul cheie cu o cheie din tabloul de bord.

curl -X PATCH https://api.zinndigital.com/v1/uptime/monitors/{monitor_id} \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

Autentificat? Consola API din panoul de control îți completează ID-ul real al organizației și propria cheie și rulează cererea în API-ul live, astfel încât să poți vedea răspunsul efectiv. Deschideți acest punct final în consola API

Detalii

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.

Parametri

NumeTipObligatoriuCe este
monitor_id (path)stringDa

Corp cerere

NumeTipObligatoriuCe este
enabledbooleanNuPause or resume. Pausing closes any open incident.
namestringNu

Răspuns

NumeTipObligatoriuCe este
idstringDa
urlstringDa
namestringNu
statestring<unknown, up, down, paused>Da⛔ `unknown` is a real state and is not a synonym for `up` — it means "not checked yet" and is excluded from every uptime percentage.
enabledbooleanDa
expect_textstringNu
site_idstringNuSet 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_atstringNu
last_up_atstringNu
last_down_atstringNu
created_atstringDa
summaryUptimeSummaryNu
historyUptimeHistoryPoint[]Nu
incidentsUptimeIncident[]Nu
vitalsUptimeVitalsPoint[]Nu
migration_offerUptimeMigrationOfferNu

Erori pe care le poate returna acest punct final

401 · 403 · 404