Skip to main content
PUT
Update the caller's automatic top-up policy.
Automatic top-up is off by default. Enable it with the default $5.00 threshold and $25.00 recharge target:
You can also provide threshold_usd and recharge_to_usd as decimal strings.

Authorizations

Authorization
string
header
required

A Droyd API key in the Authorization Bearer slot.

Headers

Idempotency-Key
string
required
Required string length: 8 - 120
Pattern: ^[A-Za-z0-9][A-Za-z0-9._:-]{7,119}$

Body

application/json
enabled
boolean
required
threshold_usd
string
default:5.00
Pattern: ^[0-9]+(?:\.[0-9]{1,2})?$
recharge_to_usd
string
default:25.00
Pattern: ^[0-9]+(?:\.[0-9]{1,2})?$

Response

Successful response.

ok
any
required