Path parameters
-
The subject name. Use [:.:] for context-qualified subjects, or just for the default context.
Query parameters
-
Redpanda version 25.2 or later. For Avro and Protobuf schemas only. Supported values: an empty string
''returns the schema in its current format (default), andserialized(Protobuf only) returns the schema in its Base64-encoded wire binary format. Unsupported values return a 501 error.
application/vnd.schemaregistry.v1+json
POST
/subjects/{subject}
cURL (application/vnd.schemaregistry.v1+json)
curl \
--request POST 'http://localhost:8081/subjects/{subject}' \
--header "Content-Type: application/vnd.schemaregistry.v1+json"
curl \
--request POST 'http://localhost:8081/subjects/{subject}' \
--header "Content-Type: application/vnd.schemaregistry+json"
curl \
--request POST 'http://localhost:8081/subjects/{subject}' \
--header "Content-Type: application/json" \
--data '{"schema":"string","schemaType":"string","references":[{"name":"string","subject":"string","version":42}],"metadata":{"properties":{"additionalProperty1":"string","additionalProperty2":"string"}}}'
Request examples
{
"schema": "string",
"schemaType": "string",
"references": [
{
"name": "string",
"subject": "string",
"version": 42
}
],
"metadata": {
"properties": {
"additionalProperty1": "string",
"additionalProperty2": "string"
}
}
}
Request examples
{
"schema": "string",
"schemaType": "string",
"references": [
{
"name": "string",
"subject": "string",
"version": 42
}
],
"metadata": {
"properties": {
"additionalProperty1": "string",
"additionalProperty2": "string"
}
}
}
Request examples
{
"schema": "string",
"schemaType": "string",
"references": [
{
"name": "string",
"subject": "string",
"version": 42
}
],
"metadata": {
"properties": {
"additionalProperty1": "string",
"additionalProperty2": "string"
}
}
}
Response examples (200)
{
"subject": "string",
"version": 42,
"id": 42,
"schemaType": "string",
"references": [
{
"name": "string",
"subject": "string",
"version": 42
}
],
"metadata": {
"properties": {
"additionalProperty1": "string",
"additionalProperty2": "string"
}
},
"schema": "string"
}
Response examples (200)
{
"subject": "string",
"version": 42,
"id": 42,
"schemaType": "string",
"references": [
{
"name": "string",
"subject": "string",
"version": 42
}
],
"metadata": {
"properties": {
"additionalProperty1": "string",
"additionalProperty2": "string"
}
},
"schema": "string"
}
Response examples (200)
{
"subject": "string",
"version": 42,
"id": 42,
"schemaType": "string",
"references": [
{
"name": "string",
"subject": "string",
"version": 42
}
],
"metadata": {
"properties": {
"additionalProperty1": "string",
"additionalProperty2": "string"
}
},
"schema": "string"
}
Response examples (404)
{
"error_code": 42,
"message": "string"
}
Response examples (404)
{
"error_code": 42,
"message": "string"
}
Response examples (404)
{
"error_code": 42,
"message": "string"
}
Response examples (409)
{
"error_code": 42,
"message": "string"
}
Response examples (409)
{
"error_code": 42,
"message": "string"
}
Response examples (409)
{
"error_code": 42,
"message": "string"
}
Response examples (422)
{
"error_code": 42,
"message": "string"
}
Response examples (422)
{
"error_code": 42,
"message": "string"
}
Response examples (422)
{
"error_code": 42,
"message": "string"
}
Response examples (500)
{
"error_code": 42,
"message": "string"
}
Response examples (500)
{
"error_code": 42,
"message": "string"
}
Response examples (500)
{
"error_code": 42,
"message": "string"
}
Response examples (501)
{
"error_code": 42,
"message": "string"
}
Response examples (501)
{
"error_code": 42,
"message": "string"
}
Response examples (501)
{
"error_code": 42,
"message": "string"
}