pydo.uptime.update_check()

Description

To update the settings of an Uptime check, send a PUT request to /v2/uptime/checks/$CHECK_ID.

Parameters

Name Type Required Description Default Value
check_id string True A unique identifier for a check.
body JSON or IO[bytes] True

Request Sample

import os
from pydo import Client

client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))

req = {
  "name": "Landing page check",
  "type": "https",
  "target": "https://www.landingpage.com",
  "regions": [
    "us_east",
    "eu_west"
  ],
  "enabled": True
}

resp = client.uptime.check_update(check_id="fd9fda", body=req)

More Information

See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.

In this article...