---
title: "Update Access Group"
method: PUT
path: "/access_group/{access_group}/update"
tags: ["model management"]
---

# Update Access Group

`PUT /access_group/{access_group}/update`

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:
```bash
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

## Path parameters

- `access_group` string, required

## Request body

- UpdateModelGroupRequest
  - `model_names` string[], nullable
  - `model_ids` string[], nullable

## Response `200`

Successful Response

- NewModelGroupResponse
  - `access_group` string, required
  - `model_names` string[], nullable
  - `model_ids` string[], nullable
  - `models_updated` integer, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/flock/apis/litellm-api.md) · [All operations](https://skmtc.net/flock/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/flock/litellm-api/revisions/8fbaab4fc7c5/schema)
