application/vnd.kafka.json.v2+json
POST
/topics/{topic_name}
cURL (application/vnd.kafka.json.v2+json)
curl \
--request POST 'http://{{Host}}/topics/{topic_name}' \
--header "Content-Type: application/vnd.kafka.json.v2+json"
curl \
--request POST 'http://{{Host}}/topics/{topic_name}' \
--header "Content-Type: application/vnd.kafka.binary.v2+json"
Request examples
{
"records": [
{
"key": "string",
"value": "string",
"partition": 42
}
]
}
Request examples
{
"records": [
{
"key": "string",
"value": "string",
"partition": 42
}
]
}
Response examples (200)
{
"offsets": [
{
"partition": 42,
"offset": 42
}
]
}