PUT v1/core/Accounts/{accId}/dnsserver

Set the current dns server for the account

Request Information

Parameters

NameDescriptionAdditional information
accId
the account id

Define this parameter in the request URI.

item
the IP Address of the new DNS server of

Define this parameter in the request body.

Request body formats

application/json, text/json, text/javascript

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'String'.

application/bson

Sample:

An exception has occurred while using the formatter 'BsonMediaTypeFormatter' to generate sample for media type 'application/bson'. Exception message: Error writing String value. BSON must start with an Object or Array. Path ''.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "Success": true,
  "Data": "sample string 2",
  "ErrorCode": 3,
  "ErrorDescription": "sample string 4",
  "Meta": "sample string 5"
}

text/javascript

Sample:
{"Success":true,"Data":"sample string 2","ErrorCode":3,"ErrorDescription":"sample string 4","Meta":"sample string 5"}

application/xml, text/xml

Sample:
<PBNBReturnOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pbnb_models">
  <Data>sample string 2</Data>
  <ErrorCode>3</ErrorCode>
  <ErrorDescription>sample string 4</ErrorDescription>
  <Meta>sample string 5</Meta>
  <Success>true</Success>
</PBNBReturnOfstring>

application/bson

Sample:
xSuccessDatasample string 2ErrorCodeErrorDescriptionsample string 4Metasample string 5