Skip to content

Commit f43903b

Browse files
Replace /zones/{zone_id}/custom_ns examples
1 parent f4adacb commit f43903b

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

src/content/docs/dns/nameservers/custom-nameservers/tenant-custom-nameservers.mdx

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ description: With tenant-level custom nameservers, you can use the same custom
1414

1515
---
1616

17-
import { Example, Render } from "~/components"
17+
import { Example, Render, APIRequest } from "~/components"
1818

1919
<Render file="acns-tcns-intro" params={{ one: "Tenant", two: "T", three: "tenant", four: "accounts", five: "tenant " }} />
2020

@@ -38,17 +38,15 @@ If you are an account owner and your account is part of a tenant that has custom
3838

3939
1. Use a [PUT command](/api/resources/zones/subresources/custom_nameservers/methods/update/) and specify `ns_type` and `ns_set`.
4040

41-
```bash
42-
curl --request PUT https://api.cloudflare.com/client/v4/zones/{zone_id}/custom_ns \
43-
--header "X-Auth-Email: <EMAIL>" \
44-
--header "X-Auth-Key: <API_KEY>" \
45-
--header "Content-Type: application/json" \
46-
--data '{
47-
"enabled": true,
48-
"ns_type": "tenant",
49-
"ns_set": <SET>
50-
}'
51-
```
41+
<APIRequest
42+
path="/zones/{zone_id}/custom_ns"
43+
method="PUT"
44+
json={{
45+
"enabled": true,
46+
"ns_type": "tenant",
47+
"ns_set": "<SET>",
48+
}}
49+
/>
5250

5351
:::note
5452

0 commit comments

Comments
 (0)