---
title: "POST /v1/namespaces/{namespace}/schema"
method: POST
path: "/v1/namespaces/{namespace}/schema"
---

# POST /v1/namespaces/{namespace}/schema

`POST /v1/namespaces/{namespace}/schema`

Update namespace schema.

## Path parameters

- `namespace` string, required

## Request body

- object — The desired schema for the namespace.

## Response `200`

The schema of the namespace.

- object — The updated schema for the namespace.

## Other responses

- `default` — An error response.

## Changes

- **2026-04-29** `ffde0a5977cc` — 2 info
  - added the new optional request property `additionalProperties/anyOf[#/components/schemas/AttributeSchemaConfig]/sparse_knn`
  - added the optional property `additionalProperties/sparse_knn` to the response with the `200` status
- **2026-04-14** `e6fc43e735f2` — 2 info
  - added the new optional request property `additionalProperties/anyOf[#/components/schemas/AttributeSchemaConfig]/fuzzy`
  - added the optional property `additionalProperties/fuzzy` to the response with the `200` status
- **2026-03-29** `bedeb359e100` — 2 info
  - added the new optional request property `additionalProperties/anyOf[#/components/schemas/AttributeSchemaConfig]/glob`
  - added the optional property `additionalProperties/glob` to the response with the `200` status

[Change history](https://skmtc.dev/turbopuffer/apis/turbopuffer-api/changes/v1/namespaces/:namespace/schema/post.md)

---

[API](https://skmtc.dev/turbopuffer/apis/turbopuffer-api.md) · [All operations](https://skmtc.dev/turbopuffer/apis/turbopuffer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/turbopuffer/apis/turbopuffer-api/revisions/585a8bb426b9?raw)
