Skip to content

Commit 171cfcc

Browse files
corrected api create sire
1 parent d750731 commit 171cfcc

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

src/content/partials/magic-wan/connector/create-site.mdx

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,8 @@ curl https://api.cloudflare.com/client/v4/accounts/{account_id}/magic/sites \
4141
--header "X-Auth-Key: <API_KEY>" \
4242
--header "Content-Type: application/json" \
4343
--data '{
44-
"site": {
45-
"description": "<SITE_DESCRIPTION>",
46-
"name": "<SITE_NAME>"
47-
}
44+
"name": "<SITE_NAME>"
45+
"description": "<SITE_DESCRIPTION>",
4846
}'
4947
```
5048

@@ -105,12 +103,10 @@ curl https://api.cloudflare.com/client/v4/accounts/{account_id}/magic/sites/{sit
105103
--header "X-Auth-Key: <API_KEY>" \
106104
--header "Content-Type: application/json" \
107105
--data '{
108-
"wan": {
109-
"description": "<YOUR_WAN_NAME>",
110-
"physport": 1,
111-
"priority": 0,
112-
"vlan_tag": 0
113-
}
106+
"name": "<YOUR_WAN_NAME>",
107+
"physport": 1,
108+
"priority": 0,
109+
"vlan_tag": 0
114110
}'
115111
```
116112

@@ -161,14 +157,12 @@ curl https://api.cloudflare.com/client/v4/accounts/{account_id}/magic/sites/{sit
161157
--header "X-Auth-Key: <API_KEY>" \
162158
--header "Content-Type: application/json" \
163159
--data '{
164-
"lan": {
165-
"description": "<YOUR_LAN_NAME>",
166-
"physport": 2,
167-
"static_addressing": {
168-
"address": "172.16.14.0/24"
169-
},
170-
"vlan_tag": 0
171-
}
160+
"name": "<YOUR_LAN_NAME>",
161+
"physport": 2,
162+
"static_addressing": {
163+
"address": "172.16.14.0/24"
164+
},
165+
"vlan_tag": 0
172166
}'
173167
```
174168

0 commit comments

Comments
 (0)