Updating DNS Record via API stopped working

Hi All,
I’m using a script on my Raspberry Pi to update a DNS record and it stopped working 1-2 months ago. It worked fine for a while but then suddenly it wasn’t. I only got around to digging deeper into it now and the API responds with a code 1001: method_not_allowed. The error code isn’t listed under the possible codes in the “DNS Record for a Zone” section, and I could find an answer anywhere else. I attached the curl command my script uses, maybe one of you can help.

curl -s -X PUT “https;//api,Cloudflare,com/client/v4/zones/$zone_identifier/dns_records/$record_identifier” -H “X-Auth-Email: $auth_email” -H “X-Auth-Key: $auth_key” -H “Content-Type: application/json” --data ‘{“type”:“A”,“name”:“$record_name”,“content”:“$ip”,“ttl”:900}’

(Sorry had to change the dots to commas in the domain as it wouldn’t let me post otherwise)

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.