POST v1/core/Accounts/{accId}/userdefaults
Set the defaults for any new users created under this account
Request Information
Parameters
| Name | Description | Additional 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:
application/bson
Sample:
p AccountID PKTIPsec PKTAPN PKTMC PKTDSL PKTIOT P2PIPsec P2PAPN P2PMC P2PDSL P2PIOT
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:
� Success Data p AccountID PKTIPsec PKTAPN PKTMC PKTDSL PKTIOT P2PIPsec P2PAPN P2PMC P2PDSL P2PIOT ErrorCode ErrorDescription sample string 3 Meta sample string 4