]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: `EXTEND` and `PRUNE` are new in 4.9.12 and 5.0.2, not `REPLACE` 16652/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 16 Dec 2025 14:00:36 +0000 (15:00 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 16 Dec 2025 14:01:29 +0000 (15:01 +0100)
Spotted by `rdz` on IRC.

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
docs/http-api/swagger/authoritative-api-swagger.yaml

index bdaf5a2c8e624aee88ef94c06400757e9ad16d6c..bd1cd35d1af958d54ef2cb9b5e39fa77cc3154d6 100644 (file)
@@ -1265,7 +1265,7 @@ definitions:
         description: 'DNS TTL of the records, in seconds. MUST NOT be included when changetype is set to “DELETE”.'
       changetype:
         type: string
-        description: 'MUST be added when updating the RRSet. Must be one of DELETE, EXTEND, PRUNE or REPLACE. PRUNE and REPLACE are available since versions 4.9.12 and 5.0.2. With DELETE, all existing RRs matching name and type will be deleted, including all comments. With EXTEND, only a single record shall be present, and it will be added to the RRSet if not already present. With PRUNE, only a single record shall be present, and it will be deleted from the RRSet if present. With REPLACE, when records is present, all existing RRs matching name and type will be deleted, and then new records given in records will be created. If no records are left, any existing comments will be deleted as well. When comments is present, all existing comments for the RRs matching name and type will be deleted, and then new comments given in comments will be created.'
+        description: 'MUST be added when updating the RRSet. Must be one of DELETE, EXTEND, PRUNE or REPLACE. EXTEND and PRUNE are available since versions 4.9.12 and 5.0.2. With DELETE, all existing RRs matching name and type will be deleted, including all comments. With EXTEND, only a single record shall be present, and it will be added to the RRSet if not already present. With PRUNE, only a single record shall be present, and it will be deleted from the RRSet if present. With REPLACE, when records is present, all existing RRs matching name and type will be deleted, and then new records given in records will be created. If no records are left, any existing comments will be deleted as well. When comments is present, all existing comments for the RRs matching name and type will be deleted, and then new comments given in comments will be created.'
       records:
         type: array
         description: 'All records in this RRSet. When updating Records, this is the list of new records (replacing the old ones). Must be empty when changetype is set to DELETE, and must contain only one element when changetype is set to EXTEND or PRUNE. An empty list results in deletion of all records (and comments).'