billing

Set the team spend cap

Create or replace the team-wide spend cap. Requires MANAGE_BILLING.

Args: team_id: Billed team. request: Window and cap. auth: Caller.

Returns: The stored cap.

put/billing/team/{team_id}/spend-limits

Path parameters

team_idstring required

Request body

window_kind'daily' | 'monthly' required

One window per identity. Setting monthly replaces a daily row.

Response

Successful Response

configuredboolean required
scope'team' | 'project' required
team_idstring required
project_idstring nullable
window_kind'daily' | 'monthly' nullable
cap_usdstring nullable
set_bystring nullable
updated_atstring date-time nullable

Changes