dots.v2.uptime.checks.byCheck_id().put()

Generated on 5 Nov 2026 from DoTs version v1.23.0

Usage

client.v2.uptime.checks.byCheck_id(check_id).put(body: WithCheck_PutRequestBody, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | WithCheck_PutResponse>

Description

To update the settings of an Uptime check, send a PUT request to /v2/uptime/checks/{check_id}.

Parameters

Path Parameters

check_id string required

Example: 4de7ac8b-495b-4884-9a69-1050c6793cd6

A unique identifier for a check.

Request Body

name string optional

Example: Landing page check

A human-friendly display name.

type string optional

The type of health check to perform.

One of: ping, http, https

target string optional

Example: https://www.landingpage.com

The endpoint to perform healthchecks on.

regions array of strings optional

Example: ["us_east", "eu_west"]

An array containing the selected regions to perform healthchecks from.

enabled boolean optional

Example: true

A boolean value indicating whether the check is enabled/disabled.

Default: true

Request Sample

Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

const response = await client.v2.uptime.checks
    .byCheck_id("4de7ac8b-495b-4884-9a69-1050c6793cd6").put({
    name: "Landing page check",
    type: "https",
    target: "https://www.landingpage.com",
    regions: [
        "us_east",
        "eu_west",
    ],
    enabled: true,
});

Response Example

Show Response Example
{
  "check": {
    "id": "5a4981aa-9653-4bd1-bef5-d6bff52042e4",
    "name": "Landing page check",
    "type": "https",
    "target": "https://www.landingpage.com",
    "regions": [
      "us_east",
      "eu_west"
    ],
    "enabled": true
  }
}

More Information

See /v2/uptime/checks/{check_id} in the API reference for 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.