model management
Update Access Group
Update an access group's model names.
This will:
- Remove the access group from all current deployments
- Add the access group to all deployments for the new model_names list
Example:
curl -X PUT 'http://localhost:4000/access_group/production-models/update' \
-H "Authorization: Bearer $LITELLM_MASTER_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model_names": ["gpt-4", "claude-3-sonnet"]
}'
Parameters:
- access_group: str - The access group name (URL path parameter)
- model_names: List[str] - New list of model groups to include
Returns:
- NewModelGroupResponse with the updated access group details
Raises:
- HTTPException 400: If any model names don't exist
- HTTPException 404: If access group not found
put/access_group/{access_group}/update
Request
- Base URL: https://docs.litellm.com.cn (the document declares no server; this is the origin it was published from)
- URL: https://docs.litellm.com.cn/access_group/{access_group}/update
- Auth: API key in header x-litellm-api-key
Path parameters
access_groupstring required
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.