---
title: "Update Schema"
method: PUT
path: "/extract/schemas/{schema_id}"
tags: ["/extract"]
---

# Update Schema

`PUT /extract/schemas/{schema_id}`

Update an existing schema.

## Path parameters

- `schema_id` string, required

## Request body

- SchemaUpdateRequest — Request model for updating a schema.
  - `name` string, nullable — Name of the schema
  - `description` string, nullable — Description of the schema
  - `schema_definition` object, nullable — JSON schema definition
  - `metadata` object, nullable — Additional metadata

## Response `200`

Successful Response

- SchemaResponse — Response model for schema information.
  - `schema_id` string, required — Unique ID of the schema
  - `name` string, required — Name of the schema
  - `description` string, nullable — Description of the schema
  - `schema_definition` object, required — JSON schema definition
  - `metadata` object, required — Schema metadata
  - `created_at` string, required — Timestamp when the schema was created
  - `updated_at` string, required — Timestamp when the schema was last updated

## Other responses

- `422` — Validation Error

## Changes

- **2025-10-28** `c8152db45500` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/contextualai/apis/endpoints/changes/extract/schemas/:schema_id/put.md)

---

[API](https://skmtc.dev/contextualai/apis/endpoints.md) · [All operations](https://skmtc.dev/contextualai/apis/endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/contextualai/endpoints/revisions/c8152db45500/schema)
