PUT api/Domain/{handle}/NameServer?user={user}
Update entire list of nameservers
Request Information
URI Parameters
| Name | Description | Type | Additional 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| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
Required |
Request Formats
application/json, text/json
[
{
"Name": "sample string 1"
},
{
"Name": "sample string 1"
}
]
application/xml, text/xml
<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
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
| Name | Description | Type | Additional information |
|---|---|---|---|
| Code |
Error code |
integer |
None. |
| Detail |
Error description |
string |
None. |
| Data |
Additional information |
Object |
None. |
Response Formats
application/json, text/json
[
{
"Code": 510,
"Detail": "nameserver not registered (example.com)",
"Data": {
"Name": "example.com"
}
}
]