hosting

PATCH /v1/uptime/monitors/{monitor_id}

Pause, resume or rename a monitored address.

Todos los endpoints de hosting

Autenticación

Envía una clave de API como token de portador. Este endpoint no especifica un permiso concreto en la especificación, así que otorga a tu clave los mínimos privilegios necesarios y comprueba la respuesta en lugar de dar por sentado.

Este endpoint no requiere ningún id de organización. Su clave ya identifica la organización a la que pertenece, y la respuesta está delimitada a ella.

Pruébalo

Reemplaza cualquier elemento entre corchetes angulares por tus propios valores, y el marcador de posición key con una clave de tu panel de control.

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

¿Has iniciado sesión? La consola de la API en tu panel de control rellena el ID de tu organización real y tu propia clave, y ejecuta la solicitud contra la API en vivo para que puedas ver la respuesta real. Abre este endpoint en la consola de la API

Detalles

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

NombreTipoObligatorio¿Qué es esto?
monitor_id (path)string

Cuerpo de la solicitud

NombreTipoObligatorio¿Qué es esto?
enabledbooleanNoPause or resume. Pausing closes any open incident.
namestringNo

Respuesta

NombreTipoObligatorio¿Qué es esto?
idstring
urlstring
namestringNo
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_textstringNo
site_idstringNoSet 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_atstringNo
last_up_atstringNo
last_down_atstringNo
created_atstring
summaryUptimeSummaryNo
historyUptimeHistoryPoint[]No
incidentsUptimeIncident[]No
vitalsUptimeVitalsPoint[]No
migration_offerUptimeMigrationOfferNo

Errores que este endpoint puede devolver

401 · 403 · 404