Create a Kafka Topic
Allows you to create a new Kafka topic within a specified Kafka cluster.
Endpoint
POST /clusters/{clusterId}/topics
The POST /clusters/{clusterId}/topics
endpoint creates a new Kafka topic within the specified Kafka cluster (clusterId
).
The request body must include the topic's name; the other parameters are optional.
Upon successful creation, the endpoint returns detailed information about the newly created topic, including its ID (id), metadata, and properties. Use this endpoint to dynamically manage Kafka topics within your environment, ensuring efficient data distribution and retention policies.
Use this endpoint to dynamically manage Kafka topics within your environment, ensuring efficient data distribution and retention policies.
Request
To make authenticated requests to the API, the following fields are mandatory in the request header:
Content-Type
yes
string
Set this to application/json
.
Accept
yes
string
Set this to application/json
.
Authorization
yes
string
Provide a header value as Bearer
followed by your token
.
Response
201 Successful operation
Last updated
Was this helpful?