From 6c7ea2e66fa4d1d440051562177d86841df26e62 Mon Sep 17 00:00:00 2001 From: celevra Date: Wed, 2 Mar 2016 10:26:01 +0100 Subject: [PATCH] Update README.md --- docs/markdown/httpapi/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/markdown/httpapi/README.md b/docs/markdown/httpapi/README.md index 1281a12c4b..7514010034 100644 --- a/docs/markdown/httpapi/README.md +++ b/docs/markdown/httpapi/README.md @@ -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": [ -- 2.47.2