---
title: "Create schema under the namespace"
method: POST
path: "/v1beta1/namespaces/{namespaceId}/schemas/{schemaId}"
tags: ["schema"]
---

# Create schema under the namespace

`POST /v1beta1/namespaces/{namespaceId}/schemas/{schemaId}`

## Path parameters

- `namespaceId` string, required
- `schemaId` string, required

## Response `200`

A successful response.

- V1beta1CreateSchemaResponse
  - `version` integer
  - `id` string
  - `location` string

## Other responses

- `default` — An unexpected error response.

## Changes

- **2022-04-22** `3d2313d120b7` — 1 info
  - endpoint added
- **2022-01-28** `df08eaea7077` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/raystack/apis/raystack-stencil-v1beta1-stencil-proto/changes/v1beta1/namespaces/:namespaceId/schemas/:schemaId/post.md)

---

[API](https://skmtc.dev/raystack/apis/raystack-stencil-v1beta1-stencil-proto.md) · [All operations](https://skmtc.dev/raystack/apis/raystack-stencil-v1beta1-stencil-proto/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/raystack/raystack-stencil-v1beta1-stencil-proto/revisions/d1b228ba05f0/schema)
