Update a dashboard alert

Updates an existing alert on a dashboard chart. You only need to provide the fields you want to change.

PATCH https://telemetry.betterstack.com/api/v2/dashboards/{dashboard_id}/charts/{chart_id}/alerts/{id}

URL parameters

dashboard_id
required integer
chart_id
required integer
id
required integer

Headers

Authorization
required string

Body parameters

name
string
alert_type
string
operator
string
value
number
string_value
string
check_period
integer
query_period
integer
aggregation_interval
integer
confirmation_period
integer
recovery_period
integer
anomaly_sensitivity
number
anomaly_trigger
string
series_names
array
source_variable
string
source_mode
string
source_platforms
array
incident_cause
string
incident_per_series
boolean
escalation_target
object
call
boolean
sms
boolean
email
boolean
push
boolean
critical_alert
boolean
metadata
object
paused
boolean
200

Response body

{
  "data": {
    "id": "789",
    "type": "alert",
    "attributes": {
      "name": "Updated Alert Name",
      "value": 150.0
    }
  }
}
404

Updating the metadata object will replace the entire object, not merge it. Any keys not included in the update request will be removed.

Example request

cURL
curl --request PATCH \
  --url https://telemetry.betterstack.com/api/v2/dashboards/123/charts/456/alerts/789 \
  --header "Authorization: Bearer $TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
    "name": "Updated Alert Name",
    "value": 150.0
  }'