POST /topics/{topicname}/partitions/{partitionid}
Changed onSends one or more records to a given topic partition, optionally specifying a key.
Request
- The document declares no server URL.
- Authnone declared
Query parameters
Whether to return immediately upon sending records, instead of waiting for metadata. No offsets will be returned if specified. Defaults to false.
Request body
Example request
{
"records": [
{
"key": "key1",
"value": "value1"
},
{
"value": "value2"
}
]
}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