/Quota/Projects/[ProjectName]/QuotaGroups/[QuotaGroup]/Quotas/Id
This URL updates a single quota.
The quota Id must be numeric.
The request body must contain either XML or JSON in the following format:
XML
<Quota AllowOverQuota="True" IsCounterOnly="True" Target="10" Completed="0" />
JSON
{
"AllowOverQuota": "True",
"IsCounterOnly": "False",
"Target": "10",
"Completed": "0"
}
Include only the attributes which need to be changed. For example, to change only the target, use the following request body:
XML
<Quota Target="10"/>
JSON
{
"Target": "10"
}
Setting a Target on an IsCounterOnly quota is allowed, but it is effective only if the IsCounterOnly flag is removed.
See also
For different values for each quota
XML
<Quotas>
<Quota FullName="Expressions:Child" Target="10" Completed="0" />
<Quota FullName="Expressions:Adult" Target="10" Completed="2" />
<Quota FullName="UseQ:Side.(0.UseQ).(0.Brand1)" Target="5" Completed="0" />
<Quota FullName="UseQ:Side.(0.UseQ).(1.Brand2)" Target="5" Completed="1" />
<Quota FullName="UseQ:Side.(0.UseQ).(2.Brand3)" Target="5" Completed="2" />
<Quota FullName="UseQ:Side.(0.UseQ).(3.Brand4)" Target="5" Completed="0" />
<Quota FullName="UseQ:Side.(0.UseQ).(4.Brand5)" Target="5" Completed="0" />
</Quotas>
JSON
{
"Quotas": [
{
"FullName": "Expressions:Child",
"Target": "10",
"Completed": "0"
},
{
"FullName": "Expressions:Adult",
"Target": "10",
"Completed": "2"
},
{
"FullName": "UseQ:Side.(0.UseQ).(0.Brand1)",
"Target": "5",
"Completed": "0"
},
{
"FullName": "UseQ:Side.(0.UseQ).(1.Brand2)",
"Target": "5",
"Completed": "1"
},
{
"FullName": "UseQ:Side.(0.UseQ).(2.Brand3)",
"Target": "5",
"Completed": "2"
},
{
"FullName": "UseQ:Side.(0.UseQ).(3.Brand4)",
"Target": "5",
"Completed": "0"
},
{
"FullName": "UseQ:Side.(0.UseQ).(4.Brand5)",
"Target": "5",
"Completed": "0"
}
]
}
The FullName of each quota must be use. Include only the attributes which need to changed.
For example, to reset the completed count for all quotas in the project MM1WithQuota, the following XML would be sent to the URL /Quota/Projects/MM1WithQuota/Quotas as a PATCH request.
XML
<Quotas Completed="0" />
JSON
{
"Completed": "0"
}