Can’t produce to Confluent Kafka topic through Kafka REST API

Hi,

I have been using cloud confluent kafka. When I produce a record in the topic via RestAPI without the Type=JSON I get the message below:

{

“error_code”: 422,

“message”: “Error: 42206 : Payload error. Schema Registry must be configured when using schemas.”

}

I want to use kafka registry. How can I do it?

https://pkc-ymrq7.us-east-2.aws.confluent.cloud:443/kafka/v3/clusters/lkc-o3dw6j/topics/demo_0/records

payload:

{

“value”: {

“data”: “foobar”

}

}