Skip to content

Commit 12896e8

Browse files
committed
remove demo
1 parent 074ad6e commit 12896e8

File tree

1 file changed

+1
-13
lines changed
  • src/content/docs/api-shield/security/schema-validation

1 file changed

+1
-13
lines changed

src/content/docs/api-shield/security/schema-validation/configure.mdx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ head:
77
content: Configure Schema Validation
88
---
99

10-
import { APIRequest, GlossaryTooltip } from "~/components"
10+
import { GlossaryTooltip } from "~/components"
1111

1212
Schema Validation 2.0 allows all corresponding configuration calls to be made via API. This validation centers more around individual <GlossaryTooltip term="API endpoint">endpoints</GlossaryTooltip> and lets you set mitigation actions for each endpoint individually. Additionally, you can use Cloudflare-provided learned schemas that we [learn automatically](/api-shield/management-and-monitoring/#endpoint-schema-learning) from your traffic for individual endpoints.
1313

@@ -214,8 +214,6 @@ curl "https://api.cloudflare.com/client/v4/zones/{zone_id}/api_gateway/settings/
214214

215215
A new value out of `none`, `log`, and `block` can be set using `PUT`.
216216

217-
Current:
218-
219217
```bash title="cURL command"
220218
curl --request PUT "https://api.cloudflare.com/client/v4/zones/{zone_id}/api_gateway/settings/schema_validation" \
221219
--header "Authorization: Bearer <API_TOKEN>" \
@@ -225,16 +223,6 @@ curl --request PUT "https://api.cloudflare.com/client/v4/zones/{zone_id}/api_gat
225223
}'
226224
```
227225

228-
Proposed:
229-
230-
<APIRequest
231-
path="/zones/{zone_id}/api_gateway/settings/schema_validation"
232-
method="PUT"
233-
json={{
234-
validation_default_mitigation_action: "block"
235-
}}
236-
/>
237-
238226
```json title="Result"
239227
{
240228
"result": {

0 commit comments

Comments
 (0)