Getting error 9020 when creating a DNS record from API v4

My post route "

My payload looks like: {"type":"CNAME","name":"","content":"","ttl":1,"proxied":true}

response from server:

{"success":false,"errors":[{"code":1004,"message":"DNS Validation Error","error_chain":[{"code":9020,"message":"Invalid DNS record type"}]}],"messages":[],"result":null}

I get the same error with “type”:“A” and whether or not I include ttl and proxied paramters.

Can you perform this action in the Cloudflare Dashboard? If so, check the Audit Logs from your Dashboard Home and see if it shows the parameters in the Meta section.

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