Using API to Add Cname to dns

Hello,

We are planning to use the api to add cnames to the dns. Do you have a suggestion on which method we should use so that it appends the cname and doesn’t overwrite the existing dns records?

Thanks!

https://api.cloudflare.com/#dns-records-for-a-zone-create-dns-record shouldnt overwrite existing records but only create new ones. As a CNAME can typically only stand alone I’d expect you to receive an error message should you attempt to create a CNAME with a name that is already in use.

Thank you!