Update an alert

Updates an existing alert by its ID. You only need to provide the fields you want to change.

PATCH https://telemetry.betterstack.com/api/v2/explorations/{exploration_id}/alerts/{id}

URL parameters

exploration_id
required integer
id
required integer

Headers

Authorization
required string

Body parameters

name
string
value
number
confirmation_period
integer
paused
boolean
escalation_target
object
metadata
object
200

Response body

{
  "data": {
    "id": 789,
    "type": "alert",
    "attributes": {
      "name": "High Error Rate Alert",
      "alert_type": "threshold",
      "operator": "higher_than",
      "value": 150.0,
      "query_period": 300,
      "confirmation_period": 60,
      "recovery_period": 300,
      "escalation_target": {
        "policy_id": 123
      },
      "paused": false,
      "created_at": "2026-02-20T10:00:00Z",
      "updated_at": "2026-02-24T15:00:00Z"
    }
  }
}
404

Example Request

cURL
curl --request PATCH \
  --url https://telemetry.betterstack.com/api/v2/explorations/123/alerts/789 \
  --header "Authorization: Bearer $TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
    "value": 150.0,
    "confirmation_period": 60
  }'