# API: Import DNS zone

# dnsZoneImport

Import DNS zone from App connection into customer profile

# Required parameters

Parameter Description
server_id App connection ID from Settings -> App connections to import zone from
domain_id Domain/zone ID returned from getDNSZonesByApp API call
client_id Client Id to import zone for
product_id DNS Package id (ie returned via dnsListPackages API call) to use for import - if customer does not own active package using this product id, new account would be crated for this purpose

# Request

GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=dnsZoneImport&server_id=SERVER_ID&domain_id=DOMAIN_ID&client_id=CLIENT_ID&product_id=PRODUCT_ID

# PHP Samples

# Response

{
    "success": true,
    "import": {
        "6737_23": {
            "zone": {
                "1testzone123.com": "1testzone123.com"
            },
            "client": "23",
            "product": "6737",
            "done": {
                "1testzone123.com": {
                    "account_id": "1644",
                    "log": [
                        "Imported zone 1testzone123.com for service #1644"
                    ],
                    "failed": [],
                    "imported": true
                }
            },
            "accountId": "1644"
        }
    },
    "call": "dnsZoneImport",
    "server_time": 1738162946
}
Last Updated: 2/3/2025, 3:48:42 PM