---
title: "Set topic partitions"
method: PUT
path: "/v1/topics/{topic_name}/partitions"
tags: ["Topics"]
---

# Set topic partitions

`PUT /v1/topics/{topic_name}/partitions`

Set partitions to an existing topic. New value must be equal to or larger than the current count of partitions in the topic. Depending on the partitioning strategy used, this may impact ordering guarantees.

## Path parameters

- `topic_name` string, required

## Request body

- SetTopicPartitionsBody
  - `partition_count` integer — The number of partitions to set for the topic.
  - `validate_only` boolean — Validate the request only, do not execute it.

## Response `200`

OK

- SetTopicPartitionsResponse

## Other responses

- `401` — Unauthenticated.
- `404` — Not Found
- `500` — Internal Server Error. Reach out to support.
- `default` — An unexpected error response.

---

[API](https://skmtc.net/redpanda-data/apis/redpanda-cloud-data-plane-api.md) · [All operations](https://skmtc.net/redpanda-data/apis/redpanda-cloud-data-plane-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/redpanda-data/redpanda-cloud-data-plane-api/versions/2917b4dd86f7/schema)
