hosting

PATCH /v1/uptime/monitors/{monitor_id}

Pause, resume or rename a monitored address.

כל נקודות הקצה מסוג hosting

אימות

שלח מפתח API כטוקן Bearer. נקודת קצה זו אינה מציינת הרשאת ספציפית במפרט, לכן הקצה למפתח שלך את המינימום הנדרש ובדוק את התגובה במקום להניח הנחות.

נקודת קצה זו אינה דורשת מזהה ארגון. המפתח שלך כבר מזהה את הארגון שאליו הוא שייך, והתגובה מוגבלת אליו בלבד.

נסה זאת

החלף כל דבר בסוגריים זוויתיים בערכים משלך, ואת מציין מיקום המפתח במפתח מלוח הבקרה שלך.

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

מחובר? קונסולת ה-API בלוח הבקרה שלך מזינה את מזהה הארגון האמיתי שלך ואת המפתח שלך, ומריצה את הבקשה מול ה-API הפיזי כך שתוכל לראות את התגובה בפועל. פתח נקודת קצה זו במסוף ה-API

פרטים

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.

פרמטרים

שםסוגנדרשמה זה
monitor_id (path)stringכן

גוף הבקשה

שםסוגנדרשמה זה
enabledbooleanלאPause or resume. Pausing closes any open incident.
namestringלא

תשובה

שםסוגנדרשמה זה
idstringכן
urlstringכן
namestringלא
statestring<unknown, up, down, paused>כן⛔ `unknown` is a real state and is not a synonym for `up` — it means "not checked yet" and is excluded from every uptime percentage.
enabledbooleanכן
expect_textstringלא
site_idstringלא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_atstringלא
last_up_atstringלא
last_down_atstringלא
created_atstringכן
summaryUptimeSummaryלא
historyUptimeHistoryPoint[]לא
incidentsUptimeIncident[]לא
vitalsUptimeVitalsPoint[]לא
migration_offerUptimeMigrationOfferלא

שגיאות שנקודה קצה זו עשויה להחזיר

401 · 403 · 404