Create & Update Teams Location documentation error

Hi.
I would just like to point out an error in API v4 documentation for Create / Update Teams Location.
#link

In the example below there’s a markup error inside the json object of the –data parameter, where we specify the IP of the network:

curl -X POST "https://api.cloudflare.com/client/v4/accounts/699d98642c564d2e855e9661899b7252/gateway/locations" \
     -H "X-Auth-Email: [email protected]" \
     -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
     -H "Content-Type: application/json" \
     --data '{"name":"Austin Office Location","networks":["192.0.2.1"],"client_default":"false"}'

instead of:

--data '{"name":"Austin Office Location","networks":["192.0.2.1"],"client_default":"false"}'

it should be:

--data '{"name":"Austin Office Location","networks":[{"network": "192.0.2.1/24"}],"client_default":false}'

(1st) notice the “networks” markup and (2nd) wrong IPv4 CIDR notation, (3rd) also notice the quotes on the “client_default” boolean value

In the original example, you get this error if just “networks” markup is wrong:

{
	"result": null,
	"success": false,
	"errors": [
		{
			"message": "json: cannot unmarshal string into Go struct field LocationRequest.networks of type api.NetworkRecordJSON"
		}
	],
	"messages": []
}

In the original example, you get this error if just “client_default” boolean value is with quotes “false”:

{
	"result": null,
	"success": false,
	"errors": [
		{
			"message": "json: cannot unmarshal string into Go struct field LocationRequest.client_default of type bool"
		}
	],
	"messages": []
}

Best regards.