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

Set the current mode of the network for the account This can be P2P or Packet

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

Sample:
{
  "RoutedMode": {
    "Enabled": true,
    "AddressMode": "AutoAssigned"
  },
  "P2PMode": {
    "Enabled": true
  },
  "CareOfAddressPool": {
    "Address": "sample string 1",
    "Mask": "sample string 2"
  }
}

text/javascript

Sample:
{"RoutedMode":{"Enabled":true,"AddressMode":0},"P2PMode":{"Enabled":true},"CareOfAddressPool":{"Address":"sample string 1","Mask":"sample string 2"}}

application/xml, text/xml

Sample:
<AccountNetworkMode xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pbnb_models">
  <CareOfAddressPool>
    <Address>sample string 1</Address>
    <Mask>sample string 2</Mask>
  </CareOfAddressPool>
  <P2PMode>
    <Enabled>true</Enabled>
  </P2PMode>
  <RoutedMode>
    <AddressMode>AutoAssigned</AddressMode>
    <Enabled>true</Enabled>
  </RoutedMode>
</AccountNetworkMode>

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 'AccountNetworkMode'.

application/bson

Sample:
�RoutedMode EnabledAddressModeP2PModeEnabledCareOfAddressPool<Addresssample string 1Masksample string 2

Response Information

Response body formats

application/json, text/json

Sample:
{
  "Success": true,
  "Data": {
    "RoutedMode": {
      "Enabled": true,
      "AddressMode": "AutoAssigned"
    },
    "P2PMode": {
      "Enabled": true
    },
    "CareOfAddressPool": {
      "Address": "sample string 1",
      "Mask": "sample string 2"
    }
  },
  "ErrorCode": 2,
  "ErrorDescription": "sample string 3",
  "Meta": "sample string 4"
}

text/javascript

Sample:
{"Success":true,"Data":{"RoutedMode":{"Enabled":true,"AddressMode":0},"P2PMode":{"Enabled":true},"CareOfAddressPool":{"Address":"sample string 1","Mask":"sample string 2"}},"ErrorCode":2,"ErrorDescription":"sample string 3","Meta":"sample string 4"}

application/xml, text/xml

Sample:
<PBNBReturnOfAccountNetworkModeCA1DLPoZ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pbnb_models">
  <Data>
    <CareOfAddressPool>
      <Address>sample string 1</Address>
      <Mask>sample string 2</Mask>
    </CareOfAddressPool>
    <P2PMode>
      <Enabled>true</Enabled>
    </P2PMode>
    <RoutedMode>
      <AddressMode>AutoAssigned</AddressMode>
      <Enabled>true</Enabled>
    </RoutedMode>
  </Data>
  <ErrorCode>2</ErrorCode>
  <ErrorDescription>sample string 3</ErrorDescription>
  <Meta>sample string 4</Meta>
  <Success>true</Success>
</PBNBReturnOfAccountNetworkModeCA1DLPoZ>

application/bson

Sample:
�SuccessData�RoutedMode EnabledAddressModeP2PModeEnabledCareOfAddressPool<Addresssample string 1Masksample string 2ErrorCodeErrorDescriptionsample string 3Metasample string 4