---
title: "POST /schemas/{namespace}/{slug}/version"
method: POST
path: "/schemas/{namespace}/{slug}/version"
tags: ["schemas"]
---

# POST /schemas/{namespace}/{slug}/version

`POST /schemas/{namespace}/{slug}/version`

Create a new schema version

## Path parameters

- `namespace` string, required
- `slug` string, required

## Request body

- object
  - `version` string, required
  - `document` string, required

## Response `200`

Default Response

- object
  - `uid` string, required

## Other responses

- `400` — Bad request
- `401` — No auth
- `403` — Forbidden
- `404` — Not found
- `422` — Invalid payload
- `500` — Uncaught error

---

[API](https://skmtc.net/scalar/apis/core.md) · [All operations](https://skmtc.net/scalar/apis/core/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/scalar/core/versions/8dff1e93bc68/schema)
