To update the settings of an Uptime check, send a PUT request to /v2/uptime/checks/$CHECK_ID
.
Name | Type | Required | Description | Default Value |
---|---|---|---|---|
check_id |
string | True | A unique identifier for a check. | |
body |
JSON or IO[bytes] | True |
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)
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.