latestOpenAPI 3.1.02026-08-197104501.1 MB
8fbaab4fc7c5
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 sk-1234' \
-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
Path parameters
access_groupstring required
Request body
Response
Successful Response