Autional Autional
API Reference GitHub autional.com →

PUT /billing/alerts/{plan_id}

Modify the threshold, notification channel, or status of an existing usage alert rule. Supports partial update; fields not passed retain their original values.

Billing Service `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes Alert ID

Request Body

Schema: dto.UpdateUsageAlertRequest

FieldTypeRequiredExampleConstraintsDescription
name string No
notification_channels string No
resource_type string No
status string No
threshold_percent integer No

Responses

StatusDescriptionSchema
200Usage alert updated successfullydto.UsageAlertDetailResponse
400Invalid request parametersobject
401Unauthorizedobject
404Alert not foundobject
500Internal server errorobject

Referenced Schemas

dto.UsageAlertDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.UsageAlertResponse No
message string No
timestamp string No

dto.UsageAlertResponse

FieldTypeRequiredExampleConstraintsDescription
app_id string No app_001
created_at string No 2026-05-01T00:00:00Z
id string No ua_001
last_triggered_at string No 2026-05-10T08:00:00Z
name string No API call volume alert
notification_channels string No email,in_app
resource_type string No api_calls
status string No active
tenant_id string No tnt_xyz789
threshold_percent integer No 80
updated_at string No 2026-05-05T10:00:00Z