v8

latestOpenAPI 3.0.0Apache 2.0raw.githubusercontent.com2025-10-165266542.4 MB
DigitalOcean-public.v2-new_Uptime

Update an Alert

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

put/v2/uptime/checks/{check_id}/alerts/{alert_id}

Path parameters

check_idstring uuid required

A unique identifier for a check.

alert_idstring uuid required

A unique identifier for an alert.

Request body

namestring

A human-friendly display name.

type'latency' | 'down' | 'down_global' | 'ssl_expiry'

The type of alert.

thresholdinteger

The threshold at which the alert will enter a trigger state. The specific threshold is dependent on the alert type.

comparison'greater_than' | 'less_than'

The comparison operator used against the alert's threshold.

period'2m' | '3m' | '5m' | '10m' | '15m' | '30m' | '1h'

Period of time the threshold must be exceeded to trigger the alert.

Example request

{
  "name": "Landing page degraded performance",
  "type": "latency",
  "threshold": 300,
  "comparison": "greater_than",
  "notifications": {
    "email": [
      "bob@example.com"
    ],
    "slack": [
      {
        "channel": "Production Alerts",
        "url": "https://hooks.slack.com/services/T1234567/AAAAAAAA/ZZZZZZ"
      }
    ]
  },
  "period": "2m"
}

Response

The response will be a JSON object with a key called alert. The value of this will be an object that contains the standard attributes associated with an uptime alert.

Example response

{
  "alert": {
    "id": "5a4981aa-9653-4bd1-bef5-d6bff52042e4",
    "name": "Landing page degraded performance",
    "type": "latency",
    "threshold": 300,
    "comparison": "greater_than",
    "notifications": {
      "email": [
        "bob@example.com"
      ],
      "slack": [
        {
          "channel": "Production Alerts",
          "url": "https://hooks.slack.com/services/T1234567/AAAAAAAA/ZZZZZZ"
        }
      ]
    },
    "period": "2m"
  }
}