hosting
PATCH /v1/uptime/monitors/{monitor_id}
Pause, resume or rename a monitored address.
Doğrulama
API açarını bearer token kimi göndərin. Bu səhifə spresifikasiyada xüsusi icazə tələb etmir, buna görə də açarınıza ehtiyac duyduğu minimum səviyyədə icazə verin və güman etmək əvəzinə cavabı yoxlayın.
Bu endpoint heç bir təşkilat ID-si tələb etmir. Sizin açarınız artıq aid olduğu təşkilatı müəyyən edir və cavab həmin təşkilat üçün məhdudlaşdırılır.
Sınaqdan keçir
Bucaqlı mötərizələrdə olan hór şeyi öz qiymətlərinizlə, açar yertutucusunu isə idarə panelinizdən bir açarla əvəz edin.
curl -X PATCH https://api.zinndigital.com/v1/uptime/monitors/{monitor_id} \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ }'Sistemə daxil olmusunuz? İdarə panelinizdəki API konsolu real təşkilatınızın identifikatorunu və öz açarınızı avtomatik doldurur, sorğunu canlı API-yə qarşı icra edir ki, siz faktiki cavabı görə biləsiniz. Bu son nöqtəni API konsolunda açın
Təfərrüatlar
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.
Parametrlər
| Ad | Tip | Tələb olunur | Nədir |
|---|---|---|---|
monitor_id (path) | string | Bəli | — |
Sorğu gövdəsi
| Ad | Tip | Tələb olunur | Nədir |
|---|---|---|---|
enabled | boolean | Xeyr | Pause or resume. Pausing closes any open incident. |
name | string | Xeyr | — |
Cavab
| Ad | Tip | Tələb olunur | Nədir |
|---|---|---|---|
id | string | Bəli | — |
url | string | Bəli | — |
name | string | Xeyr | — |
state | string<unknown, up, down, paused> | Bəli | ⛔ `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 | Bəli | — |
expect_text | string | Xeyr | — |
site_id | string | Xeyr | 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 | Xeyr | — |
last_up_at | string | Xeyr | — |
last_down_at | string | Xeyr | — |
created_at | string | Bəli | — |
summary | UptimeSummary | Xeyr | — |
history | UptimeHistoryPoint[] | Xeyr | — |
incidents | UptimeIncident[] | Xeyr | — |
vitals | UptimeVitalsPoint[] | Xeyr | — |
migration_offer | UptimeMigrationOffer | Xeyr | — |
Bu son nöqtənin qaytara biləcəyi xətalar
401 · 403 · 404