Creating or updating a zone using a master file and the API requires specific syntax depending on whether you are using REST or SOAP. Use this table to find the syntax for your command.
REST Syntax
Click to view all REST Resources |
ZoneFile/ POST — Creates a new zone from the master file sent.
HTTP Action — POST URI — https://api.dynect.net/REST/ZoneFile/<zone>/ ZoneFile/ PUT — Adds records from the zone file to an existing zone. HTTP Action — PUT URI — https://api.dynect.net/REST/ZoneFile/<zone>/ |
Arguments:
NOTE: There is a 1MB file size limit on zone file uploads. If your file is larger than 1MB, you will need to break up the zone file into batches to upload all of the zone information. ZoneFile/ POST Arguments:
ZoneFile/ PUT Arguments:
|
Response:
task_id — The number assigned to the task to upload the zone file. |
SOAP Syntax
Click to view all SOAP Commands |
UploadZoneFile — Uploads data from a master file to either create a zone or to add information to a zone. |
Arguments — Click for More Info |
Response:
task_id — The number assigned to the task to publish the zone update. |
Example Request — Click for More Info |