pydo.uptime.update_check()

Generated on 1 May 2025 from pydo version v0.11.0

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.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.