hosting

PATCH /v1/uptime/monitors/{monitor_id}

Pause, resume or rename a monitored address.

Todos os endpoints de hosting

Autenticação

Envie uma chave de API como um token bearer. Este endpoint não especifica uma permissão específica na documentação, portanto, conceda à sua chave o mínimo necessário e verifique a resposta em vez de assumir.

Este endpoint não requer um ID de organização. Sua chave já identifica a organização à qual pertence, e a resposta é delimitada a ela.

Experimente

Substitua qualquer item entre colchetes por seus próprios valores e o espaço reservado para a chave por uma chave do seu painel.

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

Conectado? O console da API no seu painel preenche o ID da sua organização real e a sua própria chave, e executa a requisição contra a API de produção para que você possa ver a resposta real. Abra este endpoint no console da API

Detalhes

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.

Parâmetros

NomeTipoObrigatórioO que é
monitor_id (path)stringSim

Corpo da requisição

NomeTipoObrigatórioO que é
enabledbooleanNãoPause or resume. Pausing closes any open incident.
namestringNão

Resposta

NomeTipoObrigatórioO que é
idstringSim
urlstringSim
namestringNão
statestring<unknown, up, down, paused>Sim⛔ `unknown` is a real state and is not a synonym for `up` — it means "not checked yet" and is excluded from every uptime percentage.
enabledbooleanSim
expect_textstringNão
site_idstringNãoSet 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_atstringNão
last_up_atstringNão
last_down_atstringNão
created_atstringSim
summaryUptimeSummaryNão
historyUptimeHistoryPoint[]Não
incidentsUptimeIncident[]Não
vitalsUptimeVitalsPoint[]Não
migration_offerUptimeMigrationOfferNão

Erros que este endpoint pode retornar

401 · 403 · 404