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

# Update Schema

`PUT /extract/schemas/{schema_id}`

## Request

- Base URL: `https://api.contextual.ai/v1`
- URL: `https://api.contextual.ai/v1/extract/schemas/{schema_id}`
- Auth: HTTP bearer

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

- **2026-10-16** `4abdda722de9`: 1 info
  - endpoint added
- **2026-01-13** `ca7f807eec8b`: 1 breaking
  - api path removed without deprecation
- **2025-10-28** `c8152db45500`: 1 info
  - endpoint added

[Operation 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.dev/contextualai/apis/endpoints/revisions/4abdda722de9?raw)
