Skip to main content
PUT
Edit a usage alert's threshold
Changes the threshold an alert fires at. The subscription and metric are the alert’s identity — to point an alert at a different subscription or metric, delete it and create a new one. Updating clears the alert’s per-period “already fired” marker (last_fired_period_start), so the new threshold can fire in the current billing period even if the old one already did.

Parameters

Request Body

Example Request

Response

The response echoes the alert’s id and the new threshold. The handler does not re-read the row after the update, so subscription_id, metric_code, created_at and updated_at come back zero-valued here — use List Usage Alerts to read the full object.

Fields

Errors

Errors use the standard envelope — see Errors.

Authorizations

Authorization
string
header
required

Tenant API key obtained from POST /auth/register or POST /v1/developer/keys.

Path Parameters

id
string<uuid>
required

Body

application/json
threshold_type
enum<string>
required
Available options:
quantity,
percent_of_limit
threshold
integer<int64>
required

Response

The updated alert

data
object

A usage threshold that fires once per billing period.