Skip to content

Commit e58e68d

Browse files
Add example reference zone API call
1 parent 3c7ab5c commit e58e68d

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/content/docs/dns/internal-dns/get-started.mdx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,17 @@ Although there are some steps that can be achieved on the dashboard, currently t
5858
<Example>
5959
In the following example, internal zone A (ID `8a904aeb565c42cfa207d98f6edea2f3`) is referencing internal zone B (ID `8e64c6fb4b514f3faf64de81efc11e51`).
6060

61-
TBD > add full API call example using IDs mentioned above
61+
```bash
62+
curl --request PATCH \
63+
https://api.cloudflare.com/client/v4/zones/8a904aeb565c42cfa207d98f6edea2f3/dns_settings \
64+
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
65+
--header "Content-Type: application/json" \
66+
--data '{
67+
"internal_dns": {
68+
"reference_zone_id": "8e64c6fb4b514f3faf64de81efc11e51D"
69+
}
70+
}'
71+
```
6272
</ Example>
6373

6474
## 2. Link your internal zone to a view

0 commit comments

Comments
 (0)