Update CDN with API

#1

Hi All

Using this bit of the API, I keep getting error
A record with those settings already exists

https://api.cloudflare.com/#dns-records-for-a-zone-update-dns-record

curl -X PUT “https://api.cloudflare.com/client/v4/zones/ZONEID/dns_records/IDENTIFIER” \

 -H "X-Auth-Email: **********" \
 -H "X-Auth-Key: ****************" \
 -H "Content-Type: application/json" \
 --data '{"type":"A","name":"****DNSRECORD****","content":"****CONTENT*****","ttl":120,"proxied":true}'

I am trying to switch the CDN on or off on the DNS record?

Anyone got any ideas?

0 Likes