---
title: "Upsert a Consumer Group"
method: PUT
path: "/{workspace}/consumer_groups/{ConsumerGroupId}"
tags: ["Consumer Groups"]
---

# Upsert a Consumer Group

`PUT /{workspace}/consumer_groups/{ConsumerGroupId}`

Create or Update Consumer Group using ID.

## Path parameters

- `workspace` string, required

## Request body

- ConsumerGroup
  - `created_at` integer, nullable — Unix epoch when the resource was created.
  - `id` string, nullable — A string representing a UUID (universally unique identifier).
  - `name` string, required — The name of the consumer group.
  - `tags` string[], nullable — A set of strings representing tags.
  - `updated_at` integer, nullable — Unix epoch when the resource was last updated.

## Response `200`

Successfully upserted Consumer Group

- ConsumerGroup
  - `created_at` integer, nullable — Unix epoch when the resource was created.
  - `id` string, nullable — A string representing a UUID (universally unique identifier).
  - `name` string, required — The name of the consumer group.
  - `tags` string[], nullable — A set of strings representing tags.
  - `updated_at` integer, nullable — Unix epoch when the resource was last updated.

## Other responses

- `401` — Unauthorized

## Changes

> 11 revisions in range; 1 not diffed.

- **2025-10-09** `740b73588ef4` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/kong/apis/kong-enterprise-admin-api/changes/:workspace/consumer_groups/:ConsumerGroupId/put.md)

---

[API](https://skmtc.dev/kong/apis/kong-enterprise-admin-api.md) · [All operations](https://skmtc.dev/kong/apis/kong-enterprise-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kong/kong-enterprise-admin-api/revisions/28b1f8a59cdc/schema)
