Help Center
Login Sign up
  1. Home
  2. API reference
  3. API documentation (JSON/XML)
  4. Tasks
  5. Zone tasks

Zone update

API reference (XML/JSON) · Updated 2025-03-10

Function

The ZoneUpdate task updates a zone on the name server.

Search and replace values of zone entries

With the keyword <search_and_replace> you can search for values and replace them with another value. Here rr_add or rr_rem blocks are not required. But they can be used additionally without disturbing the functionality.

With this order you can optionally receive a confirmation mail. To do so, use the tag <email_confirmation>your@mailaddress.com</email_confirmation> for XML and the URL parameter "confirmation_email=your@mailaddress.com" for JSON.

Description

Route: PUT /zone/{name}/{nameserver} or : PUT /zone/{name}

{
    "origin": "example.com",
    "soa": {
        "email": "do-not-reply@example.com",
        "refresh": "43200",
        "retry": "7200",
        "expire": "1209600",
        "ttl": "86400"
    },
    "dnssec": "false",
    "allowTransfer": "true",
    "grants": [
        "5.5.5.5",
        "6.6.6.6"
    ],
    "domainsafe": "false",
    "action": "COMPLETE",
    "nameServers": [
        {
            "name": "ns1.example.com",
            "ttl": "86400",
            "ipAddresses": [
                "1.1.1.1"
            ]
        },
        {
            "name": "ns2.example.com",
            "ttl": "86400"
        }
    ],
    "wwwInclude": "true",
    "main": {
        "address": "2.2.2.2",
        "ttl": "86400"
    },
   "resourceRecords": [
      {
         "name": "subdomainexample",
         "ttl": 600,
         "type": "A",
         "value": "1.3.5.7"
      },
      {
         "name": "newsubdomain",
         "ttl": 1200,
         "type": "A",
         "value": "3.2.1.0"
      }
   ]
}
{
   "stid": "20190701-app2-dev-21948",
   "status": {
      "code": "S0202",
      "text": "Zone was updated successfully on the name server.",
      "type": "SUCCESS"
   },
   "object": {
      "type": "Zone",
      "value": "example.com",
      "data": {
         "origin": "example.com",
         "virtualNameServer": "ns1.example.com"
      }
   }
}

Possible Error Messages

  • E0202 - Zone could not be updated on the name server.
  • E0242 - Subzone could not be updated.
  • EF02020 - No such zone exists.
  • EF02034 - A zone with this name server does not exist.
  • EF012003 - The action can not be carried out. DNSSEC has to be deactivated first.
  • EF02013 - Secondary name server is invalid.
  • EF02025 - We don't administrate any of the entered name servers.
  • E0202002 - Zone could not be updated on the name server.