Support Questions
Find answers, ask questions, and share your expertise

POST a new schema to schema registry using REST API


I was able to GET schema fine. But to POST a new schema, I need some clarification. How do I post a schemaobj with a schema name using the REST?

The below command throws error

curl -X POST "http://<registry-host>:7788/api/v1/schemaregistry/schemas" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"type\": \"avro\", \"schemaGroup\": \"myproject\", \"name\": \"testschema\", \"description\": \"testing schema\", \"compatibility\": \"NONE\", \"validationLevel\": \"LATEST\"}"

Unmatched ".