Update auto-recharge
Turns auto-recharge on or off and sets its threshold and target, with the dashboard’s rules. Needs the billing permission on the key or sign-in, and the person behind it must be a workspace owner or manager. threshold_usd and target_usd are required even to turn it off, except with mode keep_hours, where they default to the saved ones. mode keep_hours sizes each top-up from what the running instances cost and needs monthly_cap_usd; leaving mode out keeps the saved one.
Authorizations
Use a Runcrate API key with the rc_live_* prefix as the bearer token. Create one at https://www.runcrate.ai/dashboard/api-keys.
Body
keep_hours: a top-up starts when about keep_hours / 4 hours of the running instances' cost are left and adds about keep_hours hours, never under threshold_usd and target_usd, within monthly_cap_usd. Left out: the saved mode stays.
fixed, keep_hours "keep_hours"