PUT api/Domain/{handle}/NameServer?user={user}

Update entire list of nameservers

Request Information

URI Parameters

NameDescriptionTypeAdditional information
handle

Domain handle

string

Required

user

Optional user handle - if empty logged in user will be used

string

None.

Body Parameters

New list of nameservers - only name required.

Collection of UpdateNameServerToDomain
NameDescriptionTypeAdditional information
Name

string

Required

Request Formats

application/json, text/json

Sample:
[
  {
    "Name": "sample string 1"
  },
  {
    "Name": "sample string 1"
  }
]

application/xml, text/xml

Sample:
<ArrayOfUpdateNameServerToDomain xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models.Domain">
  <UpdateNameServerToDomain>
    <Name>sample string 1</Name>
  </UpdateNameServerToDomain>
  <UpdateNameServerToDomain>
    <Name>sample string 1</Name>
  </UpdateNameServerToDomain>
</ArrayOfUpdateNameServerToDomain>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

A list of nameservers on success
Collection of errors on failure
Return codes
200 - ok
400 - bad request
401 - unauthorized
404 - not found
500 - internal server error
510 - object does not exist
530 - invalid attribute value
551 - duplicate values
572 - operation not allowed for this TLD

Collection of NameserverError
NameDescriptionTypeAdditional information
Code

Error code

integer

None.

Detail

Error description

string

None.

Data

Additional information

Object

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Code": 510,
    "Detail": "nameserver not registered (example.com)",
    "Data": {
      "Name": "example.com"
    }
  }
]

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.