Skip to content
This repository has been archived by the owner on May 22, 2023. It is now read-only.

RecordResource

Nick Douma edited this page Mar 6, 2012 · 3 revisions

RecordResource

VALIDATE

Validates a set of records.

Request:

{
     entries: [ {
             "name": <string>,
             "type": <string>,
             "content": <string>,
             "ttl": <int optional>,
             "priority: <int optional>,
             "change_date": <int optional>
             "mode": add|delete              # default = add
     },0..n ],
     records: [ {
             "name": <string>,
             "type": <string>,
             "content": <string>,
             "ttl": <int optional>,
             "priority: <int optional>,
             "change_date": <int optional>
             "mode": add|delete              # default = add
     },0..n ],
}

Response:

true

Errors:

  • 508 - Invalid request, missing required parameters or input validation failed.

POST

This method provides legacy support, and is internally redirected to validate(). Older versions used the POST method instead of VALIDATE.