Skip to content

Update Alert

Update billing alert for certain usage amount in plan currency.

Endpoint

http
PUT /api/subscriptions/billing-alert

Parameters

Body parameters

ParameterTypeRequiredDescription
amountintegeryesThe amount in plan currency that has to be reached

Request example

sh
curl --location --request PUT 'https://files.ro/api/subscriptions/billing-alert' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {token}' \
--data-raw '{
  "amount": 25
}'

Response

json
{
  "type": "success",
  "message": "Billing alert was updated successfully"
}
json
{
  "type": "error",
  "message": "You are not authorized"
}
json
{
  "message": "The given data was invalid.",
  "errors": {
    "field": [
      "The field is required."
    ]
  }
}