---
title: "POST /consumers/{groupid}/instances/{name}/subscription"
method: POST
path: "/consumers/{groupid}/instances/{name}/subscription"
tags: ["Consumers"]
---

# POST /consumers/{groupid}/instances/{name}/subscription

`POST /consumers/{groupid}/instances/{name}/subscription`

Subscribes a consumer to one or more topics. You can describe the topics to which the consumer will subscribe in a list (of `Topics` type) or as a `topic_pattern` field. Each call replaces the subscriptions for the subscriber.

## Path parameters

- `groupid` string, required
- `name` string, required

## Response `204`

Consumer subscribed successfully.

## Other responses

- `404` — The specified consumer instance was not found.
- `409` — Subscriptions to topics, partitions, and patterns are mutually exclusive.
- `422` — A list (of `Topics` type) or a `topic_pattern` must be specified.

## Changes

- **2025-05-29** `426d9b9215e9` — 3 info
  - added the optional property `validation_errors` to the response with the `404` status
  - added the optional property `validation_errors` to the response with the `409` status
  - added the optional property `validation_errors` to the response with the `422` status
- **2021-05-24** `c8cc23cb8d01` — 2 breaking
  - added the new path request parameter `groupid`
  - added the new path request parameter `name`
- **2019-06-11** `a660d0be34bf` — 1 info
  - added the new optional request property `topic_pattern`
- **2019-05-30** `ae19f4429857` — 1 info
  - added the non-success response with the status `422`
- **2019-05-27** `574cafef42d9` — 2 breaking, 4 info
  - added required request body
  - removed the success response with the status `200`
  - api tag `Consumers` added
  - added the non-success response with the status `404`
  - …2 more

[Full history](https://skmtc.dev/strimzi/apis/http-bridge-api-reference/changes/consumers/:groupid/instances/:name/subscription/post.md)

---

[API](https://skmtc.dev/strimzi/apis/http-bridge-api-reference.md) · [All operations](https://skmtc.dev/strimzi/apis/http-bridge-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/strimzi/http-bridge-api-reference/revisions/b8205c8ab4cb/schema)
