Skip to main content
PUT
/
anomaly_notifications
/
{anomaly_notification_token}
Update anomaly notification
curl --request PUT \
  --url https://api.vantage.sh/v2/anomaly_notifications/{anomaly_notification_token} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "threshold": 123,
  "user_tokens": [
    "<string>"
  ],
  "recipient_channels": [
    "<string>"
  ]
}
'
{
  "token": "rprt_alrt_15da34156dca939d",
  "cost_report_token": "rprt_82320a9c1a608f0f",
  "created_at": "2024-04-09T15:05:37Z",
  "updated_at": "2024-04-09T15:05:37Z",
  "threshold": 2,
  "user_tokens": [
    "usr_dff5de2b6aecf042"
  ],
  "recipient_channels": [
    "channel3",
    "channel4"
  ]
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

anomaly_notification_token
string
required

Body

application/json

Update an Anomaly Notification.

threshold
integer<int32>

The threshold amount that must be met for the notification to fire.

user_tokens
string[]

The tokens of the users that receive the notification.

recipient_channels
string[]

The Slack/MS Teams channels that receive the notification.

Response

AnomalyNotification model

token
string
cost_report_token
string

The token for the CostReport the AnomalyNotification is associated with.

created_at
string

The date and time, in UTC, the AnomalyNotification was created. ISO 8601 Formatted.

Example:

"2023-08-04T00:00:00Z"

updated_at
string

The date and time, in UTC, the AnomalyNotification was last updated at. ISO 8601 Formatted.

Example:

"2023-08-04T00:00:00Z"

threshold
integer<int32>

The threshold amount that must be met for the notification to fire.

user_tokens
string[]

The tokens of the users that receive the notification.

recipient_channels
string[]

The channels that the notification is sent to.