The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
feat(organization): expose PATCH /v2/organization/{organization_id} in the OpenAPI schema
ryan-crabbe-berri3e4a884b25ee
diff --git a/litellm/proxy/management_endpoints/organization_endpoints.py b/litellm/proxy/management_endpoints/organization_endpoints.pyindex 5e38a016099..35a1380a619 100644--- a/litellm/proxy/management_endpoints/organization_endpoints.py+++ b/litellm/proxy/management_endpoints/organization_endpoints.py@@ -764,7 +764,6 @@ async def handle_update_object_permission(tags=["organization management"],dependencies=[Depends(user_api_key_auth)],response_model=LiteLLM_OrganizationTableWithMembers,- include_in_schema=False,)async def update_organization_v2(organization_id: str,diff --git a/tests/test_litellm/proxy/management_endpoints/test_organization_endpoints.py b/tests/test_litellm/proxy/management_endpoints/test_organization_endpoints.pyindex e2d89a660c2..9218cec4308 100644--- a/tests/test_litellm/proxy/management_endpoints/test_organization_endpoints.py+++ b/tests/test_litellm/proxy/management_endpoints/test_organization_endpoints.py@@ -726,6 +726,20 @@ async def _run_update_organization_v2(return mock_prisma_client+def test_v2_update_route_is_public_in_openapi():+ """PATCH /v2/organization/{organization_id} is a public route: hiding it again (include_in_schema=False)+ would drop it from openapi.json, /docs, and the generated UI API types."""+ from fastapi import FastAPI++ from litellm.proxy.management_endpoints.organization_endpoints import router++ app = FastAPI()+ app.include_router(router)+ v2_path = app.openapi()["paths"].get("/v2/organization/{organization_id}")+ assert v2_path is not None+ assert "patch" in v2_path++@pytest.mark.asyncioasync def test_v2_update_clears_tpm_limit_and_metadata(monkeypatch):"""A cleared tpm_limit is written to the budget row as None; a cleared metadata is written as {}."""