latestOpenAPI 3.1.02026-08-226994571.1 MB

1e929292ddd5

project management

Update Project

Update a project

Parameters:

  • project_id: str - The project id to update. Required.
  • project_alias: Optional[str] - Updated name for the project
  • description: Optional[str] - Updated description for the project
  • team_id: Optional[str] - Updated team_id for the project
  • metadata: Optional[dict] - Updated metadata for project
  • models: Optional[list] - Updated list of models for the project
  • blocked: Optional[bool] - Updated blocked status
  • max_budget: Optional[float] - Updated max budget
  • tpm_limit: Optional[int] - Updated tpm limit
  • rpm_limit: Optional[int] - Updated rpm limit
  • model_rpm_limit: Optional[dict] - Updated RPM limits per model
  • model_tpm_limit: Optional[dict] - Updated TPM limits per model
  • budget_duration: Optional[str] - Updated budget duration
  • tags: Optional[list] - Updated list of tags for the project
  • object_permission: Optional[LiteLLM_ObjectPermissionBase] - Updated object permission

Example:

curl --location 'http://0.0.0.0:4000/project/update' \
--header 'Authorization: Bearer sk-1234' \
--header 'Content-Type: application/json' \
--data '{
    "project_id": "project-123",
    "description": "Updated flight search system with enhanced capabilities",
    "max_budget": 200,
    "model_rpm_limit": {
        "gpt-4": 2000,
        "gpt-3.5-turbo": 10000
    },
    "metadata": {
        "use_case_id": "SNOW-12345",
        "status": "active"
    }
}'
post/project/update

Request body

budget_idstring nullable
soft_budgetnumber nullable
max_budgetnumber nullable
max_parallel_requestsinteger nullable
tpm_limitinteger nullable
rpm_limitinteger nullable
model_max_budgetobject nullable
budget_durationstring nullable
project_idstring required
project_aliasstring nullable
descriptionstring nullable
team_idstring nullable
metadataobject nullable
tagsstring[] nullable
modelsstring[] nullable
model_rpm_limitobject nullable
model_tpm_limitobject nullable
blockedboolean nullable

Response

Successful Response

project_idstring required
project_aliasstring nullable
descriptionstring nullable
team_idstring nullable
budget_idstring nullable
metadataobject nullable
modelsstring[]
spendnumber
model_spendobject nullable
model_rpm_limitobject nullable
model_tpm_limitobject nullable
blockedboolean
object_permission_idstring nullable
created_bystring required
updated_bystring required
created_atstring date-time nullable
updated_atstring date-time nullable