PUT /v1/billing/auto-recharge
Tags: billing
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string,null |
Request body
Required.
JSON
{
"$ref": "#/components/schemas/AutoRechargeConfig"
}Responses
200 — Updated auto-recharge config (echoes the new state)
JSON
{
"$ref": "#/components/schemas/AutoRechargeConfig"
}400 — INVALID_REQUEST — negative values, or enabled=true with zero threshold/amount
401 — UNAUTHENTICATED
Code samples
TypeScript
TypeScript
import { firecase } from "@firecase/sdk";
const result = await firecase.put("/billing/auto-recharge", { /* body */ });
console.log(result);Python
Python
import firecase
result = firecase.put("/billing/auto-recharge", json={})
print(result)curl
Bash
curl -X PUT https://api.firecase.ai/v1/billing/auto-recharge \
-H "Authorization: Bearer $FIRECASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'