]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Update README.md 3493/head
authorcelevra <acid@fabulous-style.de>
Wed, 2 Mar 2016 09:26:01 +0000 (10:26 +0100)
committercelevra <acid@fabulous-style.de>
Wed, 2 Mar 2016 09:26:01 +0000 (10:26 +0100)
docs/markdown/httpapi/README.md

index 1281a12c4bc0f8f8d869821ddbe43b1faa9a018d..7514010034f9366df9dd51bba123311d18e07f7f 100644 (file)
@@ -39,7 +39,7 @@ After restarting `pdns_server`, the following examples should start working:
     curl -H 'X-API-Key: changeme' http://127.0.0.1:8081/api/v1/servers/localhost/zones/example.org. | jq .
     
     # Add a new record to the new zone (would replace any existing test.example.org/A records)
-    curl -X PATCH --data '{"rrsets": [ {"name": "test.example.org.", "type": "A", "changetype": "REPLACE", "records": [ {"content": "192.0.5.4", "disabled": false, "name": "test.example.org.", "ttl": 86400, "type": "A" } ] } ] }' -H 'X-API-Key: changeme' http://127.0.0.1:8081/api/v1/servers/localhost/zones/example.org. | jq .
+    curl -X PATCH --data '{"rrsets": [ {"name": "test.example.org.", "type": "A", "ttl": 86400, "changetype": "REPLACE", "records": [ {"content": "192.0.5.4", "disabled": false } ] } ] }' -H 'X-API-Key: changeme' http://127.0.0.1:8081/api/v1/servers/localhost/zones/example.org. | jq .
 
     # Combined replacement of multiple RRsets
     curl -X PATCH --data '{"rrsets": [