Method shows/sets team quotas.
quota is the amount of quotas.
limit is the amount to which the quotas reset after the specified period (see add-quota-to-portal).
Parameters
| Parameter Name | Required? | Notes |
|---|---|---|
| offset | No | numeric offset from where to fetch team quotas, default is 0 |
| count | No | number of team quotas to return in response, default is 10 |
| office-id | No | filter team quotas by office |
| hideEmpty | No | If true, users, teams and offices that have no quotas setup will not be displayed in the response. |
Example
Request
https://ws.idibu.com/ws/rest/v1/quotas/517/teams?hash=YOUR_HASH
Response
<?xml version="1.0" encoding="utf8"?>
<idibu generator="idibu" version="1.0">
<response>
<quotas>
<quota>
<team-id>33000171</team-id>
<quota>200</quota>
<limit>123</limit>
<remaining>190</remaining>
<posted>10</posted>
</quota>
<quota>
<team-id>33000179</team-id>
<quota>44</quota>
<limit></limit>
<remaining>39</remaining>
<posted>5</posted>
</quota>
<quota>
<team-id>33000183</team-id>
<quota></quota>
<limit></limit>
</remaining>
</posted>
</quota>
</quotas>
<total>3</total>
</response>
<status>success</status>
</idibu>
Set team quotas
To set quotas, please provide data parameter containig an xml as shown in the example below.
For *slots* type of quotas, limit parameter in xml can be omitted.
Example
Data posted
POST https://ws.idibu.com/ws/rest/v1/quotas/517/teams?hash=YOUR_HASH
<?xml version="1.0"?>
<idibu>
<quota>
<team-id>33000171</team-id>
<quota>1</quota>
<limit></limit>
</quota>
<quota>
<team-id>33000172</team-id>
<quota>2</quota>
<limit>3</limit>
</quota>
</idibu>
Response
<?xml version="1.0" encoding="utf8"?>
<idibu generator="idibu" version="1.0">
<response>
<message>Quota set</message>
</response>
<status>success</status>
</idibu>