/organization/projects/{project_id}/spend_alerts/{alert_id}Update a project spend alert
Updates a spend alert configured for a project. Provide the alert's threshold, currency, evaluation interval, and notification channel in the request body.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Spend alert settings to update. The schema requires threshold_amount, currency, interval, and notification_channel.
A 400 is returned when the update is invalid or conflicts with the hard spend limit; a 403 when the authenticated user lacks permission; and a 404 when the project or spend alert is not found. threshold_amount, currency, interval, and notification_channel are required; threshold_amount must be 0 or greater, currency must be USD, interval must be month, and the notification channel must use type email with recipients. The project_id path parameter and alert_id path parameter must identify the project and alert to update.