{"record":{"id":"5bf1ecbdf2b1ad0e","repo":"BerriAI/litellm","slug":"no-team-id-passed-in","errorCode":null,"errorMessage":"No team id passed in","messagePattern":"No team id passed in","errorType":"http","errorClass":"HTTPException","httpStatus":400,"severity":"error","filePath":"litellm/proxy/management_endpoints/team_endpoints.py","lineNumber":1959,"sourceCode":"    ```\n    \"\"\"\n    try:\n        from litellm.proxy.proxy_server import (\n            litellm_proxy_admin_name,\n            llm_router,\n            prisma_client,\n            proxy_logging_obj,\n            user_api_key_cache,\n        )\n\n        if prisma_client is None:\n            raise HTTPException(\n                status_code=500,\n                detail={\"error\": CommonProxyErrors.db_not_connected_error.value},\n            )\n\n        if data.team_id is None:\n            raise HTTPException(status_code=400, detail={\"error\": \"No team id passed in\"})\n        verbose_proxy_logger.debug(\"/team/update - %s\", data)\n\n        # Validate budget values are not negative\n        if data.max_budget is not None and (not math.isfinite(data.max_budget) or data.max_budget < 0):\n            raise HTTPException(\n                status_code=400,\n                detail={\"error\": f\"max_budget must be a non-negative finite number. Received: {data.max_budget}\"},\n            )\n        if data.team_member_budget is not None and (\n            not math.isfinite(data.team_member_budget) or data.team_member_budget < 0\n        ):\n            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):","sourceCodeStart":1941,"sourceCodeEnd":1977,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/team_endpoints.py#L1941-L1977","documentation":"Error \"No team id passed in\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/team_endpoints.py:1959 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Include team_id in the request body when calling this endpoint."],"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"}