title: Changing a zone name with PDNS v1 API
body: <p>I have PowerDNS Authoritative Server 4.1.0-rc1 set up on server. I'm trying to change a zone domain name.</p>
  
  <pre><code>curl -X PUT \
    http://&lt;MY_IP&gt;:&lt;MY_PORT&gt;/api/v1/servers/localhost/zones/&lt;MY_DOMAIN&gt;. \
    -H 'content-type: application/json' \
    -H 'x-api-key: &lt;MY_KEY&gt;' \
    -d '{
        "kind": "Master",
        "name": "&lt;NEW_NAME&gt;."
    }'
  </code></pre>
  
  <p>A kind is being changed to Master, however name stays the same.</p>
  
  <p>A document at <a href="https://doc.powerdns.com/authoritative/http-api/endpoint-zones.html" rel="nofollow noreferrer">https://doc.powerdns.com/authoritative/http-api/endpoint-zones.html</a> says </p>
  
  <blockquote>
    <p>PUT /api/v1/servers/:server_id/zones/:zone_id Modifies basic zone data
    (metadata).</p>
    
    <p>Changing name renames the zone, as expected.</p>
  </blockquote>