<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><meta http-equiv="content-type" content="text/html; charset=us-ascii"><div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Hi Shailendra,<div><br></div><div>This is documented behaviour: <a href="https://doc.powerdns.com/authoritative/domainmetadata.html">https://doc.powerdns.com/authoritative/domainmetadata.html</a> states:</div><div><br></div><div><p style="font-family: inherit; box-sizing: border-box; margin: 0px 0px 10px; padding: 0px; font-size: inherit;"><font color="#942192">The option SOA-EDIT-API can not be written or read via the HTTP API metadata endpoint.</font></p><div class="section" id="allow-axfr-from" style="box-sizing: border-box;"><span id="metadata-allow-axfr-from" style="box-sizing: border-box; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: "Open Sans", Helvetica, Arial, sans-serif; font-size: 16px;"></span><br></div><div class="section" id="allow-axfr-from" style="box-sizing: border-box;"><br></div><div class="section" id="allow-axfr-from" style="box-sizing: border-box;">Cheers,</div><div class="section" id="allow-axfr-from" style="box-sizing: border-box;"><br></div><div class="section" id="allow-axfr-from" style="box-sizing: border-box;">Frank</div><div class="section" id="allow-axfr-from" style="box-sizing: border-box;"><br></div><br><br><div>
<div><meta charset="UTF-8"><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div>Frank Louwers<br>PowerDNS Certified Consultant @ Kiwazo.be</div></div></div>
</div>
<div><br><blockquote type="cite"><div>On 30 Jun 2023, at 13:55, Shailendra Gautam via Pdns-users <pdns-users@mailman.powerdns.com> wrote:</div><br class="Apple-interchange-newline"><div><div dir="ltr">Hi, <br><br>I'd like to edit the domain metadata SOA-EDIT-API to EPOCH but the API doesn't allow it, however I can edit SOA-EDIT kind. Is that a bug?<br><br>[root@sgpowerdns /]# curl -X GET <a href="http://10.10.143.64:8081/api/v1/servers/localhost/zones/test2.org./metadata">http://10.10.143.64:8081/api/v1/servers/localhost/zones/test2.org./metadata</a><br>[{"kind": "SOA-EDIT", "metadata": ["EPOCH"], "type": "Metadata"}, {"kind": "SOA-EDIT-API", "metadata": ["DEFAULT"], "type": "Metadata"}]<br>[root@sgpowerdns /]#<br>[root@sgpowerdns /]# curl -X GET <a href="http://10.10.143.64:8081/api/v1/servers/localhost/zones/test2.org./metadata/SOA-EDIT">http://10.10.143.64:8081/api/v1/servers/localhost/zones/test2.org./metadata/SOA-EDIT</a><br>{"kind": "SOA-EDIT", "metadata": ["EPOCH"], "type": "Metadata"}<br>[root@sgpowerdns /]#<br>[root@sgpowerdns /]# curl -X GET <a href="http://10.10.143.64:8081/api/v1/servers/localhost/zones/test2.org./metadata/SOA-EDIT-API">http://10.10.143.64:8081/api/v1/servers/localhost/zones/test2.org./metadata/SOA-EDIT-API</a><br>{"error": "Unsupported metadata kind 'SOA-EDIT-API'"}<br>[root@sgpowerdns /]#<br><br>--<br>Thanks,<br>SG</div>
_______________________________________________<br>Pdns-users mailing list<br>Pdns-users@mailman.powerdns.com<br>https://mailman.powerdns.com/mailman/listinfo/pdns-users<br></div></blockquote></div><br></div></div></body></html>