We have a PowerDNS master-slave setup. Now we want to use the PowerDNS API to automatically create master zones on the master server from our application. We created a master zone template, so when a domain is added the zonefile is automatically propagated with the correct records and notifies the slave.
I can't find any good reference on how to do this through the PowerDNS API. I want to post it a domain from the application and request it to make a new master zone file with the template.
Does anyone have a good example of an API call that can fix this?