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

Domain update

API reference (XML/JSON) · Updated 2023-09-18

Function

The task DomainUpdate updates the data of a domain.

With the DomainUpdatePlus task, unlike DomainUpdate, you can specify the data of a domain contact (handle) in order to have it created automatically. If a contact already exists with this data, a new one is not created, but the existing one is used. Within the "Domain" element all keywords are possible, which you can also use for the DomainUpdate. In the respective domain contact elements (ownerc, adminc, techc, zonec) you can use all keywords that are also valid when editing a domain contact.

If you do not specify certain keywords, they are loaded from the database.

If an ownerchange is sent to the system, an existing AuthInfo1 is deleted. If there is a cancelation order of type PREACK in the system, a new AuthInfo1 is automatically generated.

The keywords for the domain element are described on the Domain object page.
The keywords for the domain contact elements (ownerc, adminc, techc, zonec) for the DomainCreatePlus task are described on the Contact page.
The keyword description for DNSSsec can be found on the DNSSec object page.

Description

Route: PUT /domain/ {name}

{
   "name": "example.com",
   "ownerc": {
      "id": 23142212
   },
   "adminc": {
      "id": 21606248
   },
   "techc": {
      "id": 21606248
   },
   "confirmOrder": false,
   "nameServers": [
      {
         "name": "ns1.example.com"
      },
      {
         "name": "ns2.example.com"
      }
   ]
}
{
    "stid": "20190701-app3-dev-9048",
    "status": {
        "code": "N0102",
        "text": "Domain update has been started successfully.",
        "type": "NOTIFY"
    },
    "object": {
        "type": "Domain",
        "value": "example.com"
    },
    "data": [
        {
            "created": "2019-07-01T09:41:58.000+0200",
            "updated": "2019-07-01T09:41:58.000+0200",
            "owner": {
                "context": 4,
                "user": "customer"
            },
            "updater": {
                "context": 4,
                "user": "customer"
            },
            "status": "RUNNING",
            "execution": "2019-07-01T09:41:57.000+0200",
            "id": 4297543151
        }
    ]
}