add_partitions
Increase partition count for 1-100 Kafka topics in one call. Requires confirm=true and acknowledges key ordering risks.
Instructions
Increase the partition count of 1 to 100 topics in one call through items, and report each topic's current count, affected consumer groups, sampled key usage and warnings. Changing one topic is an items array of length one.
Kafka cannot remove partitions, and changing the count can break ordering for keyed messages. No change is made unless confirm is true; one confirm covers the whole batch, and changes are not atomic because Kafka cannot roll a successful item back. Results follow items order, each carrying index with result or error.
Keyed samples also require acknowledge_key_ordering on the item. Requires Kafka ALTER permission.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | The topics to change, 1 to 100 of them. Changing one topic is an array of length one. Duplicate topic names are refused before anything changes. | |
| confirm | No | Optional. When false or omitted, nothing is changed and the response describes what would happen for every item. Must be true to actually add partitions. One confirm covers the whole batch. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| atomic | Yes | ||
| failed | Yes | ||
| applied | Yes | ||
| results | Yes | ||
| succeeded | Yes |