Search + K

Command Palette

Search for a command to run...

Sign In

Enable validation for a schema

Deprecated
PATCH /zones/{zone_id}/api_gateway/user_schemas/{schema_id}
Copy endpoint
https://api.cloudflare.com/client/v4

Parameters

path Path Parameters

Name Type
zone_id required
type ApiShieldSchemasIdentifier = type ApiShieldIdentifier = string & string
schema_id required

Identifier for the schema-ID

string

Request Body

application/json required
{ validation_enabled?: ApiShieldValidationEnabled

Flag whether schema is enabled for validation.

type ApiShieldValidationEnabled = boolean
& true
; }

Responses

200 application/json

Enable validation for a schema response

interface ApiShieldApiResponseCommon {
errors: ApiShieldMessages
type ApiShieldMessages = {
code: number;
documentation_url?: string;
message: string;
source?: { pointer?: string; };
}
[]
;
messages: ApiShieldMessages
type ApiShieldMessages = {
code: number;
documentation_url?: string;
message: string;
source?: { pointer?: string; };
}
[]
;
success: true;
}
& { result: ApiShieldPublicSchema
interface ApiShieldPublicSchema {
created_at: ApiShieldSchemasTimestamp;
kind: ApiShieldKind;
name: string;
schema_id: ApiShieldSchemasUuid;
source?: string;
validation_enabled?: ApiShieldValidationEnabled;
}
; }

Client Errors

4XX application/json

Enable validation for a schema response failure

interface ApiShieldApiResponseCommonFailure {
errors: ApiShieldMessages
type ApiShieldMessages = {
code: number;
documentation_url?: string;
message: string;
source?: { pointer?: string; };
}
[]
;
messages: ApiShieldMessages
type ApiShieldMessages = {
code: number;
documentation_url?: string;
message: string;
source?: { pointer?: string; };
}
[]
;
result: null;
success: false;
}