Set bucket storage cap
Gives one bucket a storage cap of its own, or with cap_mb 0 removes it. A bucket's cap is optional and its owner's to set: without one, only the owner's cap (the user's or the team's total) applies, and with one both do. A bucket already over a cap it is given keeps reads and deletes; its new uploads are refused.
Access: admin on the bucket (its owner, a team's upl admin, or someone granted admin), or the upl:admin scope for any bucket. Folder-scoped clients are refused.
Required scopes: upl:bucket:manage
Authorization
OAuth2 upl:bucket:manageOAuth 2.0 authorization
In: header
Scope: upl:bucket:manage
Header Parameters
Define the version of the Connect protocol
Define the timeout, in ms
Request Body
application/json
The bucket's own cap in MiB. 0 removes it: only the owner's cap (the user's or the team's total) applies.
int320 <= value <= 1073741824Response Body
application/json
application/json
curl -X POST "https://uploads-api.xeonr.io/uplim.api.v1.BucketsService/SetBucketStorageCap" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{ "bucketRef": "map[bucketId:1042]" }'{
"capBytes": "10737418240",
"overridden": "true"
}