{"record":{"id":"c1dd4a602fe23df0","repo":"BerriAI/litellm","slug":"specify-list-of-organization-id-s-to-query-passed","errorCode":null,"errorMessage":"Specify list of organization id's to query. Passed in={data.organizations}","messagePattern":"Specify list of organization id's to query\\. Passed in=(.+?)","errorType":"http","errorClass":"HTTPException","httpStatus":400,"severity":"error","filePath":"litellm/proxy/management_endpoints/organization_endpoints.py","lineNumber":1127,"sourceCode":"@router.post(\n    \"/organization/info\",\n    tags=[\"organization management\"],\n    dependencies=[Depends(user_api_key_auth)],\n)\nasync def deprecated_info_organization(\n    data: OrganizationRequest,\n    user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),\n):\n    \"\"\"\n    DEPRECATED: Use GET /organization/info instead\n    \"\"\"\n    from litellm.proxy.proxy_server import prisma_client\n\n    if prisma_client is None:\n        raise HTTPException(status_code=500, detail={\"error\": \"No db connected\"})\n\n    if len(data.organizations) == 0:\n        raise HTTPException(\n            status_code=400,\n            detail={\"error\": f\"Specify list of organization id's to query. Passed in={data.organizations}\"},\n        )\n\n    # Verify caller has access to each requested organization\n    for org_id in data.organizations:\n        await _verify_org_access(\n            organization_id=org_id,\n            user_api_key_dict=user_api_key_dict,\n            prisma_client=prisma_client,\n        )\n\n    response: Final = await _table(OrganizationRepository(prisma_client)).find_many(\n        where={\"organization_id\": {\"in\": data.organizations}},\n        include={\"litellm_budget_table\": True},\n    )\n\n    return response","sourceCodeStart":1109,"sourceCodeEnd":1145,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/organization_endpoints.py#L1109-L1145","documentation":"The deprecated POST /organization/info endpoint fires this when the caller submits a body whose organizations list is empty: there is nothing to look up, so a 400 is raised to force the caller to pass at least one organization id. The input at fault is data.organizations == [].","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/organization_endpoints.py:1127 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass a non-empty list of organization ids in the request."],"exampleFix":null,"handlingStrategy":"validation","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-14T00:17:10.932Z"}