---
title: Schemas
---

[Skip to content](#%5Ftop) 

[API Reference](https://developers.cloudflare.com/api/typescript)

[Schema Validation](https://developers.cloudflare.com/api/typescript/resources/schema%5Fvalidation)

Copy Markdown

Open in **Claude**

Open in **ChatGPT**

Open in **Cursor**

---

**Copy Markdown**

**View as Markdown**

# Schemas

##### [List all uploaded schemas](https://developers.cloudflare.com/api/typescript/resources/schema%5Fvalidation/subresources/schemas/methods/list)

client.schemaValidation.schemas.list(SchemaListParams { zone\_id, omit\_source, page, 2 more } params, RequestOptionsoptions?): V4PagePaginationArray<[PublicSchema](https://developers.cloudflare.com/api/typescript/resources/schema%5Fvalidation#%28resource%29%20schema%5Fvalidation.schemas%20%3E%20%28model%29%20public%5Fschema%20%3E%20%28schema%29) { created\_at, kind, name, 3 more } \>

GET/zones/{zone\_id}/schema\_validation/schemas

##### [Get details of a schema](https://developers.cloudflare.com/api/typescript/resources/schema%5Fvalidation/subresources/schemas/methods/get)

client.schemaValidation.schemas.get(stringschemaID, SchemaGetParams { zone\_id, omit\_source } params, RequestOptionsoptions?): [PublicSchema](https://developers.cloudflare.com/api/typescript/resources/schema%5Fvalidation#%28resource%29%20schema%5Fvalidation.schemas%20%3E%20%28model%29%20public%5Fschema%20%3E%20%28schema%29) { created\_at, kind, name, 3 more } 

GET/zones/{zone\_id}/schema\_validation/schemas/{schema\_id}

##### [Upload a schema](https://developers.cloudflare.com/api/typescript/resources/schema%5Fvalidation/subresources/schemas/methods/create)

client.schemaValidation.schemas.create(SchemaCreateParams { zone\_id, kind, name, 2 more } params, RequestOptionsoptions?): [PublicSchema](https://developers.cloudflare.com/api/typescript/resources/schema%5Fvalidation#%28resource%29%20schema%5Fvalidation.schemas%20%3E%20%28model%29%20public%5Fschema%20%3E%20%28schema%29) { created\_at, kind, name, 3 more } 

POST/zones/{zone\_id}/schema\_validation/schemas

##### [Set schema validation state](https://developers.cloudflare.com/api/typescript/resources/schema%5Fvalidation/subresources/schemas/methods/edit)

client.schemaValidation.schemas.edit(stringschemaID, SchemaEditParams { zone\_id, validation\_enabled } params, RequestOptionsoptions?): [PublicSchema](https://developers.cloudflare.com/api/typescript/resources/schema%5Fvalidation#%28resource%29%20schema%5Fvalidation.schemas%20%3E%20%28model%29%20public%5Fschema%20%3E%20%28schema%29) { created\_at, kind, name, 3 more } 

PATCH/zones/{zone\_id}/schema\_validation/schemas/{schema\_id}

##### [Delete a schema](https://developers.cloudflare.com/api/typescript/resources/schema%5Fvalidation/subresources/schemas/methods/delete)

client.schemaValidation.schemas.delete(stringschemaID, SchemaDeleteParams { zone\_id } params, RequestOptionsoptions?): [SchemaDeleteResponse](https://developers.cloudflare.com/api/typescript/resources/schema%5Fvalidation#%28resource%29%20schema%5Fvalidation.schemas%20%3E%20%28model%29%20schema%5Fdelete%5Fresponse%20%3E%20%28schema%29) | null

DELETE/zones/{zone\_id}/schema\_validation/schemas/{schema\_id}

##### ModelsExpand Collapse 

PublicSchema { created\_at, kind, name, 3 more } 

A schema used in schema validation

created\_at: string

formatdate-time

kind: "openapi\_v3"

The kind of the schema

name: string

A human-readable name for the schema

schema\_id: string

A unique identifier of this schema

maxLength36

minLength36

formatuuid

source: string

The raw schema, e.g., the OpenAPI schema, either as JSON or YAML

validation\_enabled?: boolean

An indicator if this schema is enabled

SchemaDeleteResponse \= unknown

Schema deletion returns no result body.