---
title: Schemas
---

[Skip to content](#_top)

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

[Schema Validation](https://developers.cloudflare.com/api/python/resources/schema_validation)

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/python/resources/schema_validation/subresources/schemas/methods/list)

schema\_validation.schemas.list(SchemaListParams\*\*kwargs) -> SyncV4PagePaginationArray\[[PublicSchema](<https://developers.cloudflare.com/api/python/resources/schema_validation#(resource)%20schema_validation.schemas%20%3E%20(model)%20public_schema%20%3E%20(schema)>)]

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

##### [Get details of a schema](https://developers.cloudflare.com/api/python/resources/schema_validation/subresources/schemas/methods/get)

schema\_validation.schemas.get(strschema\_id, SchemaGetParams\*\*kwargs) -> [PublicSchema](<https://developers.cloudflare.com/api/python/resources/schema_validation#(resource)%20schema_validation.schemas%20%3E%20(model)%20public_schema%20%3E%20(schema)>)

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

##### [Upload a schema](https://developers.cloudflare.com/api/python/resources/schema_validation/subresources/schemas/methods/create)

schema\_validation.schemas.create(SchemaCreateParams\*\*kwargs) -> [PublicSchema](<https://developers.cloudflare.com/api/python/resources/schema_validation#(resource)%20schema_validation.schemas%20%3E%20(model)%20public_schema%20%3E%20(schema)>)

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

##### [Set schema validation state](https://developers.cloudflare.com/api/python/resources/schema_validation/subresources/schemas/methods/edit)

schema\_validation.schemas.edit(strschema\_id, SchemaEditParams\*\*kwargs) -> [PublicSchema](<https://developers.cloudflare.com/api/python/resources/schema_validation#(resource)%20schema_validation.schemas%20%3E%20(model)%20public_schema%20%3E%20(schema)>)

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

##### [Delete a schema](https://developers.cloudflare.com/api/python/resources/schema_validation/subresources/schemas/methods/delete)

schema\_validation.schemas.delete(strschema\_id, SchemaDeleteParams\*\*kwargs) -> object

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

##### ModelsExpand Collapse

<details>

<summary>

class PublicSchema: …

A schema used in schema validation

</summary>

created\_at: datetime

formatdate-time

<a href="#(resource)%20schema_validation.schemas%20%3E%20(model)%20public_schema%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

kind: Literal\["openapi\_v3"]

The kind of the schema

<a href="#(resource)%20schema_validation.schemas%20%3E%20(model)%20public_schema%20%3E%20(schema)%20%3E%20(property)%20kind">Link to this property</a>

name: str

A human-readable name for the schema

<a href="#(resource)%20schema_validation.schemas%20%3E%20(model)%20public_schema%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

schema\_id: str

A unique identifier of this schema

maxLength36

minLength36

formatuuid

<a href="#(resource)%20schema_validation.schemas%20%3E%20(model)%20public_schema%20%3E%20(schema)%20%3E%20(property)%20schema_id">Link to this property</a>

source: str

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

<a href="#(resource)%20schema_validation.schemas%20%3E%20(model)%20public_schema%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

validation\_enabled: Optional\[bool]

An indicator if this schema is enabled

<a href="#(resource)%20schema_validation.schemas%20%3E%20(model)%20public_schema%20%3E%20(schema)%20%3E%20(property)%20validation_enabled">Link to this property</a>

</details>

[Link to this property](<#(resource)%20schema_validation.schemas%20%3E%20(model)%20public_schema%20%3E%20(schema)>)