latestOpenAPI 3.1.02026-08-236994571.1 MB

79928a3d37d3

model management

Update Access Group

Update an access group's model names.

This will:

  1. Remove the access group from all current deployments
  2. 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

model_namesstring[] nullable
model_idsstring[] nullable

Response

Successful Response

access_groupstring required
model_namesstring[] nullable
model_idsstring[] nullable
models_updatedinteger required