Zones List DNS records API response breaking change

I have a hacky python script that uses the Cloudflare API to do Dynamic DNS for my home ip address. I noticed today that the script stopped working, and debugging it, it looks like the https://cfapi.centminmod.com/#dns-records-for-a-zone-list-dns-records response schema had a breaking change. Previously every dns record returned had a zone_id in it, now it appears that field has been removed. Obviously its not a major issue since the i have to have it as a request parameter, but its bad practice to make a breaking change like this to your response contract. (Specially when the field is still documented in the API reference) I couldn't find any api changelog for this change, was this a known breaking change?
5 Replies
Chaika
Chaika5d ago
yup was announced a while ago
Chaika
Chaika5d ago
Cloudflare Docs
API deprecations · Cloudflare Fundamentals docs
Cloudflare occasionally makes updates to our APIs that result in behavior changes or deprecations. When this happens, we will communicate when the API will no longer be available and whether there will be a replacement.
Chaika
Chaika5d ago
Specially when the field is still documented in the API reference
centmindmod is not the official api docs, it's based on a really old version, 2 api docs platforms ago
cipehr
cipehrOP5d ago
Thank you!

Did you find this page helpful?