Skip to Content
Xeonr Developer Docs
UplApiBuckets

Set bucket storage cap

POST
/uplim.api.v1.BucketsService/SetBucketStorageCap

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:manage
AuthorizationBearer <token>

OAuth 2.0 authorization

In: header

Scope: upl:bucket:manage

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

bucketRef*|&|
capMb?integer

The bucket's own cap in MiB. 0 removes it: only the owner's cap (the user's or the team's total) applies.

Formatint32
Range0 <= value <= 1073741824
[key: string]?never

Response 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"
}