---
title: Schemas
---

[Skip to content](#_top)

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

[Schema Validation](https://developers.cloudflare.com/api/go/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/go/resources/schema_validation/subresources/schemas/methods/list)

client.SchemaValidation.Schemas.List(ctx, params) (\*V4PagePaginationArray\[[PublicSchema](<https://developers.cloudflare.com/api/go/resources/schema_validation#(resource)%20schema_validation.schemas%20%3E%20(model)%20public_schema%20%3E%20(schema)>)], error)

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

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

client.SchemaValidation.Schemas.Get(ctx, schemaID, params) (\*[PublicSchema](<https://developers.cloudflare.com/api/go/resources/schema_validation#(resource)%20schema_validation.schemas%20%3E%20(model)%20public_schema%20%3E%20(schema)>), error)

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

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

client.SchemaValidation.Schemas.New(ctx, params) (\*[PublicSchema](<https://developers.cloudflare.com/api/go/resources/schema_validation#(resource)%20schema_validation.schemas%20%3E%20(model)%20public_schema%20%3E%20(schema)>), error)

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

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

client.SchemaValidation.Schemas.Edit(ctx, schemaID, params) (\*[PublicSchema](<https://developers.cloudflare.com/api/go/resources/schema_validation#(resource)%20schema_validation.schemas%20%3E%20(model)%20public_schema%20%3E%20(schema)>), error)

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

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

client.SchemaValidation.Schemas.Delete(ctx, schemaID, body) (\*[SchemaDeleteResponse](<https://developers.cloudflare.com/api/go/resources/schema_validation#(resource)%20schema_validation.schemas%20%3E%20(model)%20SchemaDeleteResponse%20%3E%20(schema)>), error)

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

##### ModelsExpand Collapse

<details>

<summary>

type PublicSchema struct{…}

A schema used in schema validation

</summary>

CreatedAt Time

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 PublicSchemaKind

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 string

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>

SchemaID string

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 string

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>

ValidationEnabled boolOptional

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)>)