Uptime

Enable/disable a monitor or change its check interval

patch/uptime/monitors/{monitorId}

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/uptime/monitors/{monitorId}
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Path parameters

monitorIdstring uuid required

Request body

enabledboolean

Response

Updated

idstring uuid required
projectIdstring uuid required
targetKind'domain' | 'platform_url' required
hostnamestring required
urlstring required
intervalSecondsinteger required
enabledboolean required
state'unknown' | 'up' | 'down' required
lastCheckAtstring nullable required

ISO-8601 timestamp

lastStatusCodeinteger nullable required
lastResponseMsinteger nullable required
lastErrorstring nullable required
lastTlsExpiresAtstring nullable required

ISO-8601 timestamp

uptime24hnumber nullable required
uptime7dnumber nullable required
uptime30dnumber nullable required

Changes

No recorded changes to this operation across all 1 revision of this API.