From 171cfcc673225ba1c445a2df7272165bfc041440 Mon Sep 17 00:00:00 2001 From: marciocloudflare Date: Mon, 4 Nov 2024 14:39:36 +0000 Subject: [PATCH] corrected api create sire --- .../magic-wan/connector/create-site.mdx | 30 ++++++++----------- 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/src/content/partials/magic-wan/connector/create-site.mdx b/src/content/partials/magic-wan/connector/create-site.mdx index 4ad11c6d1ea6019..d166c54dfd2fdbb 100644 --- a/src/content/partials/magic-wan/connector/create-site.mdx +++ b/src/content/partials/magic-wan/connector/create-site.mdx @@ -41,10 +41,8 @@ curl https://api.cloudflare.com/client/v4/accounts/{account_id}/magic/sites \ --header "X-Auth-Key: " \ --header "Content-Type: application/json" \ --data '{ - "site": { - "description": "", - "name": "" - } + "name": "" + "description": "", }' ``` @@ -105,12 +103,10 @@ curl https://api.cloudflare.com/client/v4/accounts/{account_id}/magic/sites/{sit --header "X-Auth-Key: " \ --header "Content-Type: application/json" \ --data '{ - "wan": { - "description": "", - "physport": 1, - "priority": 0, - "vlan_tag": 0 - } + "name": "", + "physport": 1, + "priority": 0, + "vlan_tag": 0 }' ``` @@ -161,14 +157,12 @@ curl https://api.cloudflare.com/client/v4/accounts/{account_id}/magic/sites/{sit --header "X-Auth-Key: " \ --header "Content-Type: application/json" \ --data '{ - "lan": { - "description": "", - "physport": 2, - "static_addressing": { - "address": "172.16.14.0/24" - }, - "vlan_tag": 0 - } + "name": "", + "physport": 2, + "static_addressing": { + "address": "172.16.14.0/24" + }, + "vlan_tag": 0 }' ```