Skip to content

Commit 924dc49

Browse files
Replace example in partial internal-reference-zone-api.mdx
1 parent f43903b commit 924dc49

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

src/content/partials/dns/internal-reference-zone-api.mdx

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,21 @@
33

44
---
55

6+
import { APIRequest } from "~/components";
7+
68
In the following example, internal zone A (ID `8a904aeb565c42cfa207d98f6edea2f3`) is referencing internal zone B (ID `8e64c6fb4b514f3faf64de81efc11e51`).
79

8-
```bash
9-
curl --request PATCH \
10-
https://api.cloudflare.com/client/v4/zones/8a904aeb565c42cfa207d98f6edea2f3/dns_settings \
11-
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
12-
--header "Content-Type: application/json" \
13-
--data '{
10+
<APIRequest
11+
path="/zones/{zone_id}/dns_settings"
12+
method="PATCH"
13+
json={
14+
{
1415
"internal_dns": {
1516
"reference_zone_id": "8e64c6fb4b514f3faf64de81efc11e51"
1617
}
17-
}'
18-
```
18+
}
19+
}
20+
parameters={{
21+
zone_id: "8a904aeb565c42cfa207d98f6edea2f3",
22+
}}
23+
/>

0 commit comments

Comments
 (0)