---
title: "Update partition count"
method: PATCH
path: "/clusters/{cluster_id}/topics/{topic_name}"
tags: ["Topic (v3)"]
---

# Update partition count

`PATCH /clusters/{cluster_id}/topics/{topic_name}`

[![Generally Available](https://img.shields.io/badge/Lifecycle%20Stage-Generally%20Available-%2345c6e8)](#section/Versioning/API-Lifecycle-Policy)

Increases number of partitions on a topic.

## Request body

- UpdatePartitionCountRequestData
  - `partitions_count` integer, required

## Response `200`

The topic.

- TopicData
  - `kind` string, required
  - `metadata` ResourceMetadata, required
    - `self` string, required
    - `resource_name` string, nullable
  - `cluster_id` string, required
  - `topic_name` string, required
  - `is_internal` boolean, required
  - `replication_factor` integer, required
  - `partitions_count` integer, required
  - `partitions` Relationship, required
    - `related` string, required
  - `configs` Relationship, required
    - `related` string, required
  - `partition_reassignments` Relationship, required
    - `related` string, required
  - `authorized_operations` string[]

## Other responses

- `400` — Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure. Usually serves application/json content, although in some cases simple text/plain content can be returned.
- `401` — Indicates a client authentication error. Kafka authentication failures will contain error code 40101 in the response body.
- `429` — Indicates that a rate limit threshold has been reached, and the client should retry again later.
- `5XX` — A server-side problem that might not be addressable from the client side. Retriable Kafka errors will contain error code 50003 in the response body.

## Changes

- **2023-03-08** (v3) `fc2720a3b446` — 2 info
  - added the new optional `query` request parameter `include_authorized_operations` to all path's operations
  - added the optional property `allOf[subschema #2]/authorized_operations` to the response with the `200` status
- **2023-03-08** (v3) `125174a361e4` — 1 info
  - endpoint added
- **2023-03-02** (v3) `0bf677c1cb67` — 1 breaking
  - api removed without deprecation
- **2022-11-30** (v3) `36eb2fbeec57` — 1 info
  - endpoint added
- **2021-03-10** (v3) `d61f00e40f31` — 1 breaking
  - api removed without deprecation

[Change history](https://skmtc.dev/confluentinc/apis/rest-admin-api/changes/clusters/:cluster_id/topics/:topic_name/patch.md)

---

[API](https://skmtc.dev/confluentinc/apis/rest-admin-api.md) · [All operations](https://skmtc.dev/confluentinc/apis/rest-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/confluentinc/rest-admin-api/revisions/02cfd6a4cefd/schema)
