Update low balance settings
Replaces the low balance notification and auto top-up settings. The update writes the whole setting, so send every field you want to keep; omitted fields take their defaults.
When send_topup is true, topup_amount_in_microdollars and topup_payment_method_id are required. The threshold must be a whole number of cents between 5,000,000 and 1,000,000,000,000 microdollars, and the top-up amount a whole number of cents of at least 10,000,000 microdollars (10.00 USD). Some spaces are required to keep auto top-up on; disabling it there is rejected with send_topup_cannot_be_disabled.
Permissions
Authenticate with a Personal access token whose holder is an owner or admin of the space. A project API token is not accepted on this endpoint, and a Personal access token has no scopes: the holder's role in the space is the whole authorization decision.
Request body
Example request
{
"threshold_in_microdollars": 6000000,
"send_email": true,
"webhook_url": "https://example.com/hooks/low-balance",
"send_topup": true,
"topup_amount_in_microdollars": 20000000
}Response
The request has succeeded.
Example response
{
"type": "low_balance_setting",
"threshold_in_microdollars": 6000000,
"threshold": 6,
"send_email": true,
"webhook_url": "https://example.com/hooks/low-balance",
"send_topup": true,
"topup_amount_in_microdollars": 20000000,
"topup_amount": 20
}Changes
Changed in 1 of the 161 revisions of this API.1
- ○
endpoint added
endpoint-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
Of the 161 revisions, 3 have a changelog that could not be searched.