---
title: "Create Topic"
method: POST
path: "/clusters/{cluster_id}/topics"
tags: ["Topic"]
---

# Create Topic

`POST /clusters/{cluster_id}/topics`

Creates a topic.

## Request body

- CreateTopicRequestData
  - `topic_name` string, required
  - `partitions_count` integer
  - `replication_factor` integer
  - `replicas_assignments` object[]
    - `partition_id` integer, required
    - `broker_ids` integer[], required
  - `configs` object[]
    - `name` string, required
    - `value` string, nullable

## Response `201`

The created 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` Relationship, required
    - `related` string, required
  - `configs` Relationship, required
    - `related` string, required
  - `partition_reassignments` Relationship, required
    - `related` string, required

## Changes

- **2021-03-10** (v3) `d61f00e40f31` — 3 breaking, 2 warning, 7 info
  - the `replicas_assignments` request property type/format changed from `object`/`` to `array`/``
  - removed the required property `allOf[subschema #2]/partitions_count` from the response with the `201` status
  - removed the success response with the status `200`
  - removed the request property `validate_only`
  - …8 more

[Change history](https://skmtc.dev/confluentinc/apis/rest-admin-api/changes/clusters/:cluster_id/topics/post.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/f4e2cecc76c2/schema)
