---
title: "Updates Consumer Groups a Consumer belongs to"
method: PUT
path: "/v1/ai-gateways/{gatewayId}/consumers/{consumerIdOrName}/consumer-groups"
tags: ["AI Gateway Consumers"]
---

# Updates Consumer Groups a Consumer belongs to

`PUT /v1/ai-gateways/{gatewayId}/consumers/{consumerIdOrName}/consumer-groups`

**Pre-release Endpoint**
This endpoint is currently in beta and is subject to change.

Updates AI Gateway Consumer Groups a Consumer belongs to

## Request body

- object
  - `consumer_groups` string[]

## Response `201`

Consumer Group names added to the consumer

- object
  - `consumer_groups` string[]

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `429` — Too Many Requests

---

[API](https://skmtc.net/kong/apis/konnect-api-go-sdk.md) · [All operations](https://skmtc.net/kong/apis/konnect-api-go-sdk/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kong/konnect-api-go-sdk/revisions/b576ea92fca2/schema)
