Resello REST API Documentation

POST domain/[domain_name]/name-server

Adds up to five name servers to the specified domain name. This only works if name server management is enabled.

Resource URL

https://backoffice.hostcontrol.com/api/v1/domain/[domain_name]/name-server

Parameters

Parameter Required? Description Example value
name_servers required Contains a list with nameservers Please see example request

Example request


POST    https://backoffice.hostcontrol.com/api/v1/domain/exampledomainnnn.com/name-server

POST Data

{
   "name_servers": [
      {
         "hostname": "ns-test.hostcontrol.com"
      },
      {
         "hostname": "ns2-test.hostcontrol.com"
      },
      {
         "hostname": "ns1.backupns.nl"
      }
   ]
}

Result

{
   "result": [
      {
         "hostname": "ns-test.hostcontrol.com"
      },
      {
         "hostname": "ns2-test.hostcontrol.com"
      },
      {
         "hostname": "ns1.backupns.nl"
      }
   ],
   "success": true
}