# 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. ## Servers - Data Plane API: https://{dataplane_api_subdomain}.cloud.redpanda.com (Data Plane API) ## Authentication methods - Auth0 ## Parameters ### Path parameters - **topic_name** (string) The topic name. ### Body: application/json (object) - **partition_count** (integer(int32)) The number of partitions to set for the topic. - **validate_only** (boolean) Validate the request only, do not execute it. ## Responses ### 200 OK #### Body: application/json (object) object ### 401 Unauthenticated. #### Body: application/json (object) - **code** (string(int32)) RPC status code, as described [here](https://github.com/googleapis/googleapis/blob/b4c238feaa1097c53798ed77035bbfeb7fc72e96/google/rpc/code.proto#L32). - **details** (array[object]) A list of messages that carries the error details. - **message** (string) Detailed error message. No compatibility guarantees are given for the text contained in this message. ### 404 Not Found #### Body: application/json (object) - **code** (string(int32)) RPC status code, as described [here](https://github.com/googleapis/googleapis/blob/b4c238feaa1097c53798ed77035bbfeb7fc72e96/google/rpc/code.proto#L32). - **details** (array[object]) A list of messages that carries the error details. - **message** (string) Detailed error message. No compatibility guarantees are given for the text contained in this message. ### 500 Internal Server Error. Reach out to support. #### Body: application/json (object) - **code** (string(int32)) RPC status code, as described [here](https://github.com/googleapis/googleapis/blob/b4c238feaa1097c53798ed77035bbfeb7fc72e96/google/rpc/code.proto#L32). - **details** (array[object]) A list of messages that carries the error details. - **message** (string) Detailed error message. No compatibility guarantees are given for the text contained in this message. ### default An unexpected error response. #### Body: application/json (object) - **code** (string(int32)) RPC status code, as described [here](https://github.com/googleapis/googleapis/blob/b4c238feaa1097c53798ed77035bbfeb7fc72e96/google/rpc/code.proto#L32). - **details** (array[object]) A list of messages that carries the error details. - **message** (string) Detailed error message. No compatibility guarantees are given for the text contained in this message. [Powered by Bump.sh](https://bump.sh)