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
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
- ○
endpoint added
endpoint-added
This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○