{"record":{"id":"df6529f20dcc7364","repo":"BerriAI/litellm","slug":"cannot-move-team-to-organization-team-has-rpm-lim","errorCode":null,"errorMessage":"Cannot move team to organization. Team has rpm_limit {team.rpm_limit} that is greater than the organization's rpm_limit {organization.litellm_budget_table.rpm_limit}.","messagePattern":"Cannot move team to organization\\. Team has rpm_limit (.+?) that is greater than the organization's rpm_limit (.+?)\\.","errorType":"http","errorClass":"HTTPException","httpStatus":403,"severity":"error","filePath":"litellm/proxy/management_endpoints/team_endpoints.py","lineNumber":1856,"sourceCode":"    if (\n        team.tpm_limit\n        and organization.litellm_budget_table\n        and organization.litellm_budget_table.tpm_limit\n        and team.tpm_limit > organization.litellm_budget_table.tpm_limit\n    ):\n        raise HTTPException(\n            status_code=403,\n            detail={\n                \"error\": f\"Cannot move team to organization. Team has tpm_limit {team.tpm_limit} that is greater than the organization's tpm_limit {organization.litellm_budget_table.tpm_limit}.\"\n            },\n        )\n    if (\n        team.rpm_limit\n        and organization.litellm_budget_table\n        and organization.litellm_budget_table.rpm_limit\n        and team.rpm_limit > organization.litellm_budget_table.rpm_limit\n    ):\n        raise HTTPException(\n            status_code=403,\n            detail={\n                \"error\": f\"Cannot move team to organization. Team has rpm_limit {team.rpm_limit} that is greater than the organization's rpm_limit {organization.litellm_budget_table.rpm_limit}.\"\n            },\n        )\n    return True\n\n\n@router.post(\"/team/update\", tags=[\"team management\"], dependencies=[Depends(user_api_key_auth)])\n@management_endpoint_wrapper\nasync def update_team(\n    data: UpdateTeamRequest,\n    http_request: Request,\n    user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),\n    litellm_changed_by: str | None = Header(\n        None,\n        description=\"The litellm-changed-by header enables tracking of actions performed by authorized users on behalf of other users, providing an audit trail for accountability\",\n    ),","sourceCodeStart":1838,"sourceCodeEnd":1874,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/team_endpoints.py#L1838-L1874","documentation":"Error \"Cannot move team to organization. Team has rpm_limit {team.rpm_limit} that is greater than the organization's rpm_limit {organization.litellm_budget_table.rpm_limit}.\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/team_endpoints.py:1856 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Lower the team's rpm_limit to fit within the organization's rpm_limit before moving."],"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"}