{"record":{"id":"fdd72d78cd2c8119","repo":"BerriAI/litellm","slug":"team-not-found-passed-team-id-data-team-id","errorCode":null,"errorMessage":"Team not found, passed team_id={data.team_id}","messagePattern":"Team not found, passed team_id=(.+?)","errorType":"http","errorClass":"HTTPException","httpStatus":404,"severity":"error","filePath":"litellm/proxy/management_endpoints/team_endpoints.py","lineNumber":1989,"sourceCode":"            raise HTTPException(\n                status_code=400,\n                detail={\n                    \"error\": f\"team_member_budget must be a non-negative finite number. Received: {data.team_member_budget}\"\n                },\n            )\n        if data.soft_budget is not None and (not math.isfinite(data.soft_budget) or data.soft_budget < 0):\n            raise HTTPException(\n                status_code=400,\n                detail={\"error\": f\"soft_budget must be a non-negative finite number. Received: {data.soft_budget}\"},\n            )\n\n        validate_budget_duration(data.budget_duration)\n        validate_budget_duration(data.team_member_budget_duration)\n\n        existing_team_row = await _team_db(prisma_client).find_unique(where={\"team_id\": data.team_id})\n\n        if existing_team_row is None:\n            raise HTTPException(\n                status_code=404,\n                detail={\"error\": f\"Team not found, passed team_id={data.team_id}\"},\n            )\n\n        # Verify caller has access to manage this team\n        await _verify_team_access(\n            team_obj=LiteLLM_TeamTable.model_validate(existing_team_row.model_dump()),\n            user_api_key_dict=user_api_key_dict,\n        )\n\n        _existing_team_metadata: Final[object] = getattr(existing_team_row, \"metadata\", None)\n        enforce_output_token_estimates_are_admin_only(\n            data=data,\n            existing_metadata=_existing_team_metadata if isinstance(_existing_team_metadata, dict) else None,\n            user_api_key_dict=user_api_key_dict,\n            entity=\"team\",\n        )\n","sourceCodeStart":1971,"sourceCodeEnd":2007,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/team_endpoints.py#L1971-L2007","documentation":"Error \"Team not found, passed team_id={data.team_id}\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/team_endpoints.py:1989 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the team_id exists via GET /team/list or /team/info before updating it."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}