Skip to main content
PUT
cURL

Headers

X-CSRF-Token
string
required

Echoes the token from the current session. Required on every unsafe method.

Path Parameters

slug
string
required

Body

application/json
enabled
boolean
required
spendLimitMinor
integer<int64>
required
Required range: x >= 0
spendWindowSeconds
integer<int64>
required
Required range: x >= 1
credentials
string | null

Omit or send null to keep the stored credential.

lowBalanceThresholdMinor
integer<int64> | null

Response

Saved

slug
string
required
enabled
boolean
required
credentialsSet
boolean
required
spendLimitMinor
integer<int64>
required

Rolling ceiling in provider cost. Zero means no ceiling.

spendWindowSeconds
integer<int64>
required
status
enum<string>
required
Available options:
unknown,
healthy,
failing
lowBalance
boolean
required

Derived from the balance and the threshold, so it cannot contradict them.

balanceMinor
integer<int64>
balanceCurrency
string
lowBalanceThresholdMinor
integer<int64>
lastErrorCode
string
lastCheckedAt
string<date-time>