Changing nameservers through CloudFlare's API

Hey everyone,

On reddit someone posted about an API endpoint that lets you modify the nameservers for a domain registered with Cloudflare.

I haven’t tried it yet, but would there be any risk to using it? It is an officially documented API option, but would this mess up the domain registration when the nameservers change and Cloudflare automatically removes it as a zone?

Thanks