© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•15mo ago•
1 reply
varunagarwal_1

Unable to update IP Address of DNS Location in Zero Trust using API in free plan

What is the issue you’re encountering
Unable to update IP Address of DNS Location in Zero Trust using API. Here is how to navigate → Zero Trust → Gateway → DNS Location → Endpoint Protection ->IPv4 addresses

What are the steps to reproduce the issue?
Execute below API

Code 01:
curl -X PUT “https://api.cloudflare.com/client/v4/accounts/<account-id>/gateway/locations/<location-id>” -H “Authorization: Bearer <auth-token>” -H “Content-Type: application/json” --data ‘{“name”:“Home”,“networks”:[“106.51.217.45/32”],“client_default”:“true”}’

Code-02
curl -X PUT “https://api.cloudflare.com/client/v4/accounts/<account-id>/gateway/locations/<location-id>” -H “X-Auth-Email: <email-id>” -H “X-Auth-Key: <global-auth-key> ” -H “Content-Type: application/json” --data ‘{“name”:“Home”,“networks”:[“106.51.217.45”],“client_default”:“true”}’

What is the error number? 1212

What is the error message? Invalid CIDR
Error.png
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Unable submit for Zero Trust Free Plan
Cloudflare DevelopersCDCloudflare Developers / general-help
2y ago
Can't cancel Zero Trust Plan Free
Cloudflare DevelopersCDCloudflare Developers / general-help
2y ago
unable to assign IPV4 address to Zerotrust Gateway location - Error states using free plan
Cloudflare DevelopersCDCloudflare Developers / general-help
16mo ago
Zero Trust Standard Plan
Cloudflare DevelopersCDCloudflare Developers / general-help
6mo ago