{"record":{"id":"2006235f6b523265","repo":"BerriAI/litellm","slug":"organization-alias-cannot-be-cleared-it-is-requir","errorCode":null,"errorMessage":"organization_alias cannot be cleared; it is required","messagePattern":"organization_alias cannot be cleared; it is required","errorType":"http","errorClass":"HTTPException","httpStatus":422,"severity":"error","filePath":"litellm/proxy/management_endpoints/organization_endpoints.py","lineNumber":807,"sourceCode":"            detail={\"error\": f\"max_budget must be a non-negative finite number. Received: {data.max_budget}\"},\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=422,\n            detail={\"error\": f\"soft_budget must be a non-negative finite number. Received: {data.soft_budget}\"},\n        )\n    if data.model_max_budget:\n        from litellm.proxy.management_endpoints.key_management_endpoints import (\n            validate_model_max_budget,\n        )\n\n        try:\n            validate_model_max_budget(data.model_max_budget)\n        except ValueError as e:\n            raise HTTPException(status_code=422, detail={\"error\": str(e)})\n\n    if \"organization_alias\" in data.model_fields_set and data.organization_alias is None:\n        raise HTTPException(\n            status_code=422,\n            detail={\"error\": \"organization_alias cannot be cleared; it is required\"},\n        )\n    if \"models\" in data.model_fields_set and data.models is None:\n        raise HTTPException(\n            status_code=422,\n            detail={\"error\": \"models cannot be set to null; send [] to clear it\"},\n        )\n    if data.object_permission is not None and not data.object_permission.model_dump(exclude_none=True):\n        raise HTTPException(\n            status_code=422,\n            detail={\n                \"error\": \"object_permission cannot be an empty object; send null to clear it, or a non-empty object to set grants\"\n            },\n        )\n\n    await _verify_org_access(\n        organization_id=organization_id,","sourceCodeStart":789,"sourceCodeEnd":825,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/organization_endpoints.py#L789-L825","documentation":"Immutability guard on organization update: the payload explicitly sets organization_alias to null (field present in model_fields_set). Aliases are required for every organization, so clearing is rejected with 422 — send a non-null value to rename instead.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/organization_endpoints.py:807 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide a non-empty organization_alias; it cannot be cleared."],"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-14T05:17:10.506Z"}