Skip to content

Commit 6163750

Browse files
Replace remaining /zones/{zone_id}/dns_settings examples
1 parent 9b3d5fb commit 6163750

File tree

2 files changed

+15
-21
lines changed

2 files changed

+15
-21
lines changed

src/content/docs/dns/dnssec/multi-signer-dnssec/setup.mdx

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,13 @@ curl "https://api.cloudflare.com/client/v4/zones/{zone_id}/dns_records" \
9494
This step is required. Without turning on this setting, Cloudflare will ignore any `NS` records created on the zone apex. This means that responses to DNS queries made to the zone apex and requesting `NS` records will only contain Cloudflare nameservers.
9595
:::
9696

97-
```bash
98-
curl --request PATCH \
99-
"https://api.cloudflare.com/client/v4/zones/{zone_id}/dns_settings" \
100-
--header "X-Auth-Email: <EMAIL>" \
101-
--header "X-Auth-Key: <API_KEY>" \
102-
--header "Content-Type: application/json" \
103-
--data '{
104-
"multi_provider": true
105-
}'
106-
```
97+
<APIRequest
98+
path="/zones/{zone_id}/dns_settings"
99+
method="PATCH"
100+
json={{
101+
"multi_provider": true,
102+
}}
103+
/>
107104

108105
</TabItem>
109106
</Tabs>

src/content/docs/dns/foundation-dns/setup.mdx

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebar:
66
label: Setup
77
---
88

9-
import { TabItem, Tabs } from "~/components";
9+
import { TabItem, Tabs, APIRequest } from "~/components";
1010

1111
Advanced nameservers included with [Foundation DNS](/dns/foundation-dns/) are an opt-in configuration.
1212

@@ -27,16 +27,13 @@ To enable advanced nameservers on an existing zone:
2727

2828
Use the [Update DNS Settings](/api/resources/dns/subresources/settings/methods/edit/) endpoint to send a PATCH request like the following:
2929

30-
```bash
31-
curl --request PATCH \
32-
"https://api.cloudflare.com/client/v4/zones/{zone_id}/dns_settings" \
33-
--header "X-Auth-Email: <EMAIL>" \
34-
--header "X-Auth-Key: <API_KEY>" \
35-
--header "Content-Type: application/json" \
36-
--data '{
37-
"foundation_dns": true
38-
}'
39-
```
30+
<APIRequest
31+
path="/zones/{zone_id}/dns_settings"
32+
method="PATCH"
33+
json={{
34+
"foundation_dns": true,
35+
}}
36+
/>
4037

4138
The response body will contain your assigned namservers in the `nameservers` object. You will use these nameservers in the next step.
4239

0 commit comments

Comments
 (0)