REST API - Space Quota
- Angela
Introduction
The space quota data can be retrieved and quota allocated can be updated via REST API:
REST APIs
Method | GET |
---|---|
URL |
|
Query params | startIndex - The start index e.g. |
Response | 200 {
"total": 45,
"spaceQuotaList": [
{
"spaceKey": "ACC",
"quotaUnit": "MB",
"quotaAllocated": "5.00",
"quotaUsed": "0.99",
"quotaAvailable": "4.01",
"quotaUsage": "19.8",
"quotaUsageColour": "green",
"isQuotaDefault": true,
"isQuotaUnlimited": false,
"allVersionsCount": 19,
"currentVersionsCount": 12,
"lastUpdateTime": "Aug 01, 2024 05:00",
"nextUpdateTime": "Aug 16, 2024 05:00",
"isAddedToQueue": false
},
...
]
} |
403 - No view permission You do not have permission to view this. | |
412 - Quota setup not completed The Space Quota is not viewable yet. Please look for your Confluence Administrator to complete the initial setup. | |
Permission | Available for:
|
Method | GET |
---|---|
URL |
|
Path params | spaceKey - The space key |
Response | 200 |
403 - No view permission | |
412 - Quota setup not completed | |
Permission | Available for:
|
Method | POST |
---|---|
URL |
|
Path params | spaceKey - The space key |
Query param | quotaAllocated - The new quota to set for the space e.g. |
Response | 200 |
403 - No edit permission | |
412 - Quota setup not completed | |
Permission | Available for:
|