Skip to main content

Method shows/sets office 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 NameRequired?Notes
offsetNonumeric offset from where to fetch office quotas, default is 0
countNonumber of office quotas to return in response, default is 10
hideEmptyNoIf true, users, teams and offices that have no quotas setup will not be displayed in the response.

Show office quotas

Example

Request

https://ws.idibu.com/ws/rest/v1/quotas/517/offices?hash=YOUR_HASH

Response

<?xml version="1.0" encoding="utf8"?>
<idibu generator="idibu" version="1.0">
<response>
<quotas>
<quota>
<office-id>33000170</office-id>
<quota>50</quota>
<limit>10</limit>
<remaining>47</remaining>
<posted/>3</posted/>
</quota>
<quota>
<office-id>33000178</office-id>
<quota>4</quota>
<limit></limit>
<remaining>1</remaining>
<posted/>3</posted/>
</quota>
<quota>
<office-id>33000182</office-id>
<quota></quota>
<limit></limit>
<remaining></remaining>
<posted></posted>
</quota>
<quota>
<office-id>33000205</office-id>
<quota></quota>
<limit></limit>
<remaining></remaining>
<posted></posted>
</quota>
</quotas>
<total>4</total>
</response>
<status>success</status>
</idibu>

Set office 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/offices?hash=YOUR_HASH
<?xml version="1.0"?>
<idibu>
<quota>
<office-id>33000170</office-id>
<quota>1</quota>
<limit></limit>
</quota>
<quota>
<office-id>33000171</office-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>