Hi
I am trying to deploy the public hostnames or update the public hostnames using api, could someone please help
like in the Cloudflare zero trust
public hostname:
HTTPS
URL: 192.168.1.5
when i try this i get the error
curl -X PUT “https://api.cloudflare.com/client/v4/zones/{zone_id}/tunnels/{tunnel_id}”
-H “Authorization: Bearer {API_Token}”
-H “Content-Type: application/json”
–data ‘{
“type”: “HTTP”,
“metadata”: {
“url”: “https://your-url.com”
}
}’
Error:
{“success”:false,“errors”:[{“code”:10000,“message”:“PUT method not allowed for the api_token authentication scheme”}]}
How can i achieve this using CLI