v1
latestOpenAPI 3.0.02026-07-241310301.1 KBdefault
Update Cost Alert Configuration Rule
Update an existing cost alert rule by ID. This example demonstrates:
- granularity: 3 (specific day in week) with dayInWeek: 5 (Saturday)
- changeType: "decrease" (detect cost decreases)
- alertLevel: "linked_account" (account-level monitoring)
- operator: "IS_NOT" (exclusion filter)
- costType: "net_amortized" (net amortized cost calculation)
put/api/v2/cost-alerts/rule/id
Headers
Authorizationstring
apikeystring
Content-Typestring
Request body
object required
Example request
{
"alertRule": {
"alertName": "Updated Weekly Cost Alert",
"filters": {
"linkedaccid": {
"operator": "IS",
"value": [
"123456789012"
]
},
"service": {
"operator": "IS_NOT",
"value": [
"Amazon EC2-Instance"
]
}
},
"alertLevel": "linked_account",
"alertType": "changeCostService",
"changeType": "decrease",
"changePercent": 30,
"changeValue": 500,
"granularity": 3,
"dayInWeek": 5,
"operatorType": "and",
"costType": "net_amortized",
"recipients": [
{
"dstId": "updated-finance@example.com",
"recipientData": {
"dstId": "updated-finance@example.com",
"type": "EMAIL"
}
}
],
"recipientsEmails": [
"updated-finance@example.com"
]
}
}Response
Successful response