is there a api client or something to

is there a api client or something to update dns records from within workers?
2 Replies
ale
ale2y ago
a native API such as Workers Cache API? (https://developers.cloudflare.com/workers/examples/cache-api/), nope. But you can still update DNS records from a Worker by making an HTTP request via fetch to the Cloudflare API (https://developers.cloudflare.com/api/operations/dns-records-for-a-zone-patch-dns-record and for Worker's Routes too: https://developers.cloudflare.com/api/operations/worker-routes-update-route) (:
Cloudflare API Documentation
Interact with Cloudflare's products and services via the Cloudflare API
Cloudflare API Documentation
Interact with Cloudflare's products and services via the Cloudflare API
Tricked
TrickedOP2y ago
alright thanks was hoping that there was a easier way with some library but i guess manual fetch it is
Want results from more Discord servers?
Add your server