POST v1/core/Accounts/{accId}/userdefaults

Set the defaults for any new users created under this account

Request Information

Parameters

NameDescriptionAdditional information
accId
the account id

Define this parameter in the request URI.

item
the new user defaults object

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "AccountID": 1,
  "PKTIPsec": true,
  "PKTAPN": true,
  "PKTMC": true,
  "PKTDSL": true,
  "PKTIOT": true,
  "P2PIPsec": true,
  "P2PAPN": true,
  "P2PMC": true,
  "P2PDSL": true,
  "P2PIOT": true
}

text/javascript

Sample:
{"AccountID":1,"PKTIPsec":true,"PKTAPN":true,"PKTMC":true,"PKTDSL":true,"PKTIOT":true,"P2PIPsec":true,"P2PAPN":true,"P2PMC":true,"P2PDSL":true,"P2PIOT":true}

application/xml, text/xml

Sample:
<AccountUserDefaults xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pbnb_models">
  <AccountID>1</AccountID>
  <P2PAPN>true</P2PAPN>
  <P2PDSL>true</P2PDSL>
  <P2PIOT>true</P2PIOT>
  <P2PIPsec>true</P2PIPsec>
  <P2PMC>true</P2PMC>
  <PKTAPN>true</PKTAPN>
  <PKTDSL>true</PKTDSL>
  <PKTIOT>true</PKTIOT>
  <PKTIPsec>true</PKTIPsec>
  <PKTMC>true</PKTMC>
</AccountUserDefaults>

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

application/bson

Sample:
pAccountIDPKTIPsecPKTAPNPKTMCPKTDSLPKTIOTP2PIPsecP2PAPNP2PMCP2PDSLP2PIOT

Response Information

Response body formats

application/json, text/json

Sample:
{
  "Success": true,
  "Data": {
    "AccountID": 1,
    "PKTIPsec": true,
    "PKTAPN": true,
    "PKTMC": true,
    "PKTDSL": true,
    "PKTIOT": true,
    "P2PIPsec": true,
    "P2PAPN": true,
    "P2PMC": true,
    "P2PDSL": true,
    "P2PIOT": true
  },
  "ErrorCode": 2,
  "ErrorDescription": "sample string 3",
  "Meta": "sample string 4"
}

text/javascript

Sample:
{"Success":true,"Data":{"AccountID":1,"PKTIPsec":true,"PKTAPN":true,"PKTMC":true,"PKTDSL":true,"PKTIOT":true,"P2PIPsec":true,"P2PAPN":true,"P2PMC":true,"P2PDSL":true,"P2PIOT":true},"ErrorCode":2,"ErrorDescription":"sample string 3","Meta":"sample string 4"}

application/xml, text/xml

Sample:
<PBNBReturnOfAccountUserDefaultsCA1DLPoZ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pbnb_models">
  <Data>
    <AccountID>1</AccountID>
    <P2PAPN>true</P2PAPN>
    <P2PDSL>true</P2PDSL>
    <P2PIOT>true</P2PIOT>
    <P2PIPsec>true</P2PIPsec>
    <P2PMC>true</P2PMC>
    <PKTAPN>true</PKTAPN>
    <PKTDSL>true</PKTDSL>
    <PKTIOT>true</PKTIOT>
    <PKTIPsec>true</PKTIPsec>
    <PKTMC>true</PKTMC>
  </Data>
  <ErrorCode>2</ErrorCode>
  <ErrorDescription>sample string 3</ErrorDescription>
  <Meta>sample string 4</Meta>
  <Success>true</Success>
</PBNBReturnOfAccountUserDefaultsCA1DLPoZ>

application/bson

Sample:
�SuccessDatapAccountIDPKTIPsecPKTAPNPKTMCPKTDSLPKTIOTP2PIPsecP2PAPNP2PMCP2PDSLP2PIOTErrorCodeErrorDescriptionsample string 3Metasample string 4