fbpx
PUThttps://api.spotinst.io/spectrum/metrics/alert/{ALERT_ID}?accountId={ACCOUNT_ID}

Update your alert configuration

URL Parameters

Parameter Type Description
ALERT_ID String

Metric action id, you can obtain it from List All Alerts API call

Example: al-a123e4567bc2
ACCOUNT_ID String

Your Spotinst accountId associated with your token

Example: act-123abc
Request - Example

Headers
{
	"Content-Type": "application/json",
	"Authorization": "Bearer ${token}"
}
Body
Copied!
Downloaded!
{
  "alert": {
    "conditions": {
      "error": {
        "threshold": 5200,
        "operator": "gt"
      }
    }
  }
}