---
title: "POST /subjects/{subject}/versions/{version}"
method: POST
path: "/subjects/{subject}/versions/{version}"
tags: ["Subjects"]
---

# POST /subjects/{subject}/versions/{version}

`POST /subjects/{subject}/versions/{version}`

Checks if a given schema matches the schema at the specified version. Returns the schema details if it matches, or 404 if it does not.

## Path parameters

- `subject` string, required
- `version` string, required

## Query parameters

- `normalize` boolean
- `format` string
- `deleted` boolean

## Headers

- `X-Registry-GroupId` string

## Request body

- RegisterSchemaRequest
  - `schema` string, required — The schema definition as a string.
  - `schemaType` string — The schema format (AVRO, PROTOBUF, JSON). Default is AVRO.
  - `references` SchemaReference[] — A list of referenced schemas.
    - `name` string, required
    - `subject` string, required
    - `version` integer, required
  - `metadata` object — Optional metadata associated with the schema.
  - `ruleSet` object — Optional ruleset configuration for the schema.

## Response `200`

Schema version data if the given schema matches.

- Schema
  - `subject` string, required — The name of the subject this schema belongs to.
  - `version` integer, required — The version of the schema under the subject.
  - `id` integer — The globally unique ID of the schema.
  - `schema` string, required — The actual schema definition as a string.
  - `schemaType` string — The type of the schema (AVRO, PROTOBUF, JSON). Default is AVRO.
  - `references` SchemaReference[] — A list of referenced schemas.
    - `name` string, required
    - `subject` string, required
    - `version` integer, required

## Other responses

- `404` — Error returned by the Schema Registry API
- `422` — Error returned by the Schema Registry API
- `500` — Error returned by the Schema Registry API

---

[API](https://skmtc.net/apicurio/apis/apicurio-registry-confluent-compatibility-api.md) · [All operations](https://skmtc.net/apicurio/apis/apicurio-registry-confluent-compatibility-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/apicurio/apicurio-registry-confluent-compatibility-api/versions/933e587f2d85/schema)
