Update team overage settings
Update overage billing configuration. Requires MANAGE_BILLING.
Auto-refill is how a team keeps its wallet funded, so no plan tier decides whether it may be enabled — a team on free is the one most likely to run dry, and refusing it here is what invariant 14 of the prepaid ledger design forbids ("the ability to spend depends only on funds, limits, and payment health"). Whether a refill can actually be charged is a payment-method question, answered by Stripe at charge time, not a subscription question.
Args: team_id: Team whose settings are being updated. request: Fields to change; unset fields are left alone. auth: Caller identity; must hold MANAGE_BILLING on the team.
Returns: The team's settings after the update.
Raises: HTTPException: 403 without MANAGE_BILLING on the team; 404 if the team does not exist; 400 for any validation failure below — an invalid topup_mode, a reset-window change the plan disallows, a null or invalid usage_reset_hour / usage_reset_timezone, or a request that sets no fields.
Path parameters
Request body
Response
Successful Response