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

Changes

Changed in 1 of the 42 revisions of this API.2

    • ○

      added the optional property // to the response with the status

      response-optional-property-added

    • ○

      added the optional property // to the response with the status

      response-optional-property-added

    This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog