team management

Reset Team Member Spend Fn

Reset a team member's tracked spend against their per-member budget.

A member's spend is tracked separately from both their own personal budget and the team's own budget (LiteLLM_TeamMembership.spend), so neither /user/update nor /team/update can clear it: this is the only endpoint that does. The cross-pod spend counter and cached membership reads are invalidated so the reset takes effect on the member's next request rather than waiting on the membership cache's TTL.

post/team/{team_id}/member/{user_id}/reset_spend

Path parameters

team_idstring required
user_idstring required

Request body

reset_tonumber required

Response

Successful Response

{"stackTrail":"paths:/team/{team_id}/member/{user_id}/reset_spend:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

Changed in 1 of the 42 revisions of this API.1