POST /topics/{topicname}
Changed onSends one or more records to a given topic, optionally specifying a partition, key, or both.
Request
- The document declares no server URL.
- Authnone declared
Query parameters
Ignore metadata as result of the sending operation, not returning them to the client. If not specified it is false, metadata returned.
Request body
Example request
{
"records": [
{
"key": "key1",
"value": "value1"
},
{
"value": "value2",
"partition": 1
},
{
"value": "value3"
}
]
}Response
Records sent successfully.
Example response
{
"offsets": [
{
"partition": 92,
"offset": 98
},
{
"error_code": 404,
"message": "Topic my-topic not present in metadata after 60000 ms."
},
{
"partition": 65,
"offset": 91
}
]
}Changes
- breaking
removed
subschema #1subschema #2subschema #3from the//request propertyoneOflist (media type: application/vnd.kafka.json.v2+json) - breaking
removed
subschema #1subschema #2subschema #3from the//request propertyoneOflist (media type: application/vnd.kafka.binary.v2+json) - breaking
removed
subschema #1subschema #2subschema #3from the//request propertyoneOflist (media type: application/vnd.kafka.text.v2+json) - breaking
removed
subschema #1subschema #2subschema #3subschema #4from the//request propertyoneOflist (media type: application/vnd.kafka.json.v2+json) - breaking
removed
subschema #1subschema #2subschema #3subschema #4from the//request propertyoneOflist (media type: application/vnd.kafka.binary.v2+json) - breaking
removed
subschema #1subschema #2subschema #3subschema #4from the//request propertyoneOflist (media type: application/vnd.kafka.text.v2+json) - info
added
subschema #1subschema #2subschema #3to the//request propertyoneOflist (media type: application/vnd.kafka.json.v2+json) - info
added
subschema #1subschema #2subschema #3to the//request propertyoneOflist (media type: application/vnd.kafka.binary.v2+json) - info
added
subschema #1subschema #2subschema #3to the//request propertyoneOflist (media type: application/vnd.kafka.text.v2+json) - info
added
subschema #1subschema #2subschema #3subschema #4to the//request propertyoneOflist (media type: application/vnd.kafka.json.v2+json) - info
added
subschema #1subschema #2subschema #3subschema #4to the//request propertyoneOflist (media type: application/vnd.kafka.binary.v2+json) - info
added
subschema #1subschema #2subschema #3subschema #4to the//request propertyoneOflist (media type: application/vnd.kafka.text.v2+json)
- breaking
- breaking
the request property
//became not nullable (media type: application/vnd.kafka.json.v2+json) - breaking
the request property
//became not nullable (media type: application/vnd.kafka.binary.v2+json) - breaking
the request property
//became not nullable (media type: application/vnd.kafka.text.v2+json) - info
request property
//list-of-types was widened by adding typesnullto media typeapplication/vnd.kafka.binary.v2+json - info
request property
//list-of-types was widened by adding typesnullto media typeapplication/vnd.kafka.json.v2+json - info
request property
//list-of-types was widened by adding typesnullto media typeapplication/vnd.kafka.text.v2+json - info
added the optional property
///to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking