Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

POST a new schema to schema registry using REST API

Highlighted

POST a new schema to schema registry using REST API

New Contributor

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 ".