/Quota/Projects/[ProjectName]/QuotaGroups/[QuotaGroup]/Quotas
This URL updates all quotas in a quota group, either to the same values or each to different values. The group name must be URL‑encoded.
You can specify either the Name or Id. If more than one are specified, they must specify a single quota; that is the Name and Id must match.
For the same value
XML
<QuotaGroup Target="10" Completed="0" />
JSON
{
"Target": "10",
"Completed": "0"
}
For different values for each quota
XML
<QuotaGroup PendMode="Priority" PendLimit="3">
<Quota Name="Side.(0.UseQ).(0.Brand1)" Target="5" Completed="0" />
<Quota Id=1 Target="5" Completed="1" />
<Quota Name="Side.(0.UseQ).(2.Brand3)" Target="5" Completed="2" />
<Quota Id=3 Target="5" Completed="0" />
<Quota Name="Side.(0.UseQ).(4.Brand5)" Target="5" Completed="0" />
</QuotaGroup>
JSON
{
"PendMode": "Priority",
"PendLimit": "3",
"Quotas": [
{
"Name": "Side.(0.UseQ).(0.Brand1)",
"Target": "5",
"Completed": "0"
},
{
"Name": "Side.(0.UseQ).(1.Brand2)",
"Target": "5",
"Completed": "1"
},
{
"Name": "Side.(0.UseQ).(2.Brand3)",
"Target": "5",
"Completed": "2"
},
{
"Name": "Side.(0.UseQ).(3.Brand4)",
"Target": "5",
"Completed": "0"
},
{
"Name": "Side.(0.UseQ).(4.Brand5)",
"Target": "5",
"Completed": "0"
}
]
}
Include only the attributes which need to be changed. When specifying values for individual quotas, the Name attribute/property must be included. The PendMode and PendLimit can also get set for the QuotaGroup. These can also be changed without changing any of the quota complete or target counts.
XML
<QuotaGroup PendMode="Priority" PendLimit="3" />
JSON
{
"PendMode": "Priority",
"PendLimit": "3"
}
See also