Create bucket

Create a new bucket to organize streams.

bucketpathstringrequired

Bucket ID. Must match [a-z0-9_-]{4,64}.

Response

StatusMeaning
201Bucket created successfully.
400Invalid bucket ID.
409Bucket already exists.
curl -X PUT http://127.0.0.1:4437/demo

Write requests are automatically forwarded to the cluster leader. If the current node is not the leader, you will receive a 307 redirect with a Location header pointing to the leader.