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

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

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

Assigns one or more topic partitions to a consumer.

## Response `204`

Partitions assigned successfully.

## Other responses

- `404` — The specified consumer instance was not found.
- `409` — Subscriptions to topics, partitions, and patterns are mutually exclusive.

## Changes

- **2025-05-29** `426d9b9215e9` — 2 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
- **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
- **2019-05-21** `c10758b73ea6` — 2 breaking, 4 info
  - removed the request body
  - removed the success response with the status `204`
  - api tag `Consumers` removed
  - removed the non-success response with the status `404`
  - …2 more

[Change history](https://skmtc.dev/strimzi/apis/http-bridge-api-reference/changes/consumers/:groupid/instances/:name/assignments/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/1cc83c2d9990/schema)
