Creating multiple DNS Records using API

I am able to create DNS Record using API if I try to create for one record but it doesn’t work for multiple records. Could you please advise on the json format for creating multiple DNS Records. I tried the below but it doesn’t work
[{“type”:“A”,“name”:“test”,“content”:“1.2.3.4”,“ttl”:120,“priority”:10,“proxied”:false},{“type”:“A”,“name”:“test1”,“content”:“2.2.3.4”,“ttl”:120,“priority”:10,“proxied”:false}]

There’s not a supported format for that. You can do a for each loop and make a call per record or you can import a bind file.

1 Like

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