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

creates network quotas default for the account

Request Information

Parameters

NameDescriptionAdditional information
accId
the account id

Define this parameter in the request URI.

item
the quota default object

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "AccountID": 1,
  "Quota": 2,
  "FirstProRata": true,
  "CycleType": "Daily|Weekly|Monthly",
  "CycleDay": 4,
  "CycleHour": 5,
  "CycleMinute": 6,
  "CycleTimeZone": "GMT|CET|EET|AST|EST|CST|MST|PST|AKST|HAST|MSK|RZ3|RZ4|RZ5|RZ1|RZ6|RZ7|RZ8|RZ9|RZ10|RZ11|MSST|DST|MIS|MXP|MXM|MXC|BLT|VST|BVT|CHT|NST|BZT|AGT|GST|UST|JST|EGT|SAT|IST|SST|KST|INT|WAT|NAT|AUT|QST|NWT|AEST|ACST|AWST|HKT|ACT|AMT|BRT|FNT",
  "CycleDaylightSavings": true
}

text/javascript

Sample:
{"AccountID":1,"Quota":2,"FirstProRata":true,"CycleType":0,"CycleDay":4,"CycleHour":5,"CycleMinute":6,"CycleTimeZone":0,"CycleDaylightSavings":true}

application/xml, text/xml

Sample:
<AccountQuotaDefaults xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pbnb_models">
  <AccountID>1</AccountID>
  <CycleDay>4</CycleDay>
  <CycleDaylightSavings>true</CycleDaylightSavings>
  <CycleHour>5</CycleHour>
  <CycleMinute>6</CycleMinute>
  <CycleTimeZone>GMT|CET|EET|AST|EST|CST|MST|PST|AKST|HAST|MSK|RZ3|RZ4|RZ5|RZ1|RZ6|RZ7|RZ8|RZ9|RZ10|RZ11|MSST|DST|MIS|MXP|MXM|MXC|BLT|VST|BVT|CHT|NST|BZT|AGT|GST|UST|JST|EGT|SAT|IST|SST|KST|INT|WAT|NAT|AUT|QST|NWT|AEST|ACST|AWST|HKT|ACT|AMT|BRT|FNT</CycleTimeZone>
  <CycleType>Daily|Weekly|Monthly</CycleType>
  <FirstProRata>true</FirstProRata>
  <Quota>2</Quota>
</AccountQuotaDefaults>

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

application/bson

Sample:
�AccountIDQuotaFirstProRataCycleTypeCycleDayCycleHourCycleMinuteCycleTimeZoneCycleDaylightSavings

Response Information

the new defaults object

Response body formats

application/json, text/json

Sample:
{
  "Success": true,
  "Data": {
    "AccountID": 1,
    "Quota": 2,
    "FirstProRata": true,
    "CycleType": "Daily|Weekly|Monthly",
    "CycleDay": 4,
    "CycleHour": 5,
    "CycleMinute": 6,
    "CycleTimeZone": "GMT|CET|EET|AST|EST|CST|MST|PST|AKST|HAST|MSK|RZ3|RZ4|RZ5|RZ1|RZ6|RZ7|RZ8|RZ9|RZ10|RZ11|MSST|DST|MIS|MXP|MXM|MXC|BLT|VST|BVT|CHT|NST|BZT|AGT|GST|UST|JST|EGT|SAT|IST|SST|KST|INT|WAT|NAT|AUT|QST|NWT|AEST|ACST|AWST|HKT|ACT|AMT|BRT|FNT",
    "CycleDaylightSavings": true
  },
  "ErrorCode": 2,
  "ErrorDescription": "sample string 3",
  "Meta": "sample string 4"
}

text/javascript

Sample:
{"Success":true,"Data":{"AccountID":1,"Quota":2,"FirstProRata":true,"CycleType":0,"CycleDay":4,"CycleHour":5,"CycleMinute":6,"CycleTimeZone":0,"CycleDaylightSavings":true},"ErrorCode":2,"ErrorDescription":"sample string 3","Meta":"sample string 4"}

application/xml, text/xml

Sample:
<PBNBReturnOfAccountQuotaDefaultsCA1DLPoZ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pbnb_models">
  <Data>
    <AccountID>1</AccountID>
    <CycleDay>4</CycleDay>
    <CycleDaylightSavings>true</CycleDaylightSavings>
    <CycleHour>5</CycleHour>
    <CycleMinute>6</CycleMinute>
    <CycleTimeZone>GMT|CET|EET|AST|EST|CST|MST|PST|AKST|HAST|MSK|RZ3|RZ4|RZ5|RZ1|RZ6|RZ7|RZ8|RZ9|RZ10|RZ11|MSST|DST|MIS|MXP|MXM|MXC|BLT|VST|BVT|CHT|NST|BZT|AGT|GST|UST|JST|EGT|SAT|IST|SST|KST|INT|WAT|NAT|AUT|QST|NWT|AEST|ACST|AWST|HKT|ACT|AMT|BRT|FNT</CycleTimeZone>
    <CycleType>Daily|Weekly|Monthly</CycleType>
    <FirstProRata>true</FirstProRata>
    <Quota>2</Quota>
  </Data>
  <ErrorCode>2</ErrorCode>
  <ErrorDescription>sample string 3</ErrorDescription>
  <Meta>sample string 4</Meta>
  <Success>true</Success>
</PBNBReturnOfAccountQuotaDefaultsCA1DLPoZ>

application/bson

Sample:
�SuccessData�AccountIDQuotaFirstProRataCycleTypeCycleDayCycleHourCycleMinuteCycleTimeZoneCycleDaylightSavingsErrorCodeErrorDescriptionsample string 3Metasample string 4