Skip to Content
Xeonr Developer Docs
UplApiBuckets

Update personal storage limits

POST
/uplim.api.v1.BucketsService/UpdateUserStorageLimits

Changes what update_mask names of one person's storage limits. pool_mb sets the person's storage cap, the most all their personal buckets may hold together: 0 goes back to the deployment default and -1 is unlimited. bucket_cap_mb is deprecated (a person has no per-bucket cap) and naming it is InvalidArgument. A person already over a pool they are given keeps reads and deletes; their new uploads are refused.

Access: the upl:admin scope, else PermissionDenied.

Required scopes: upl:admin

Authorization

OAuth2 upl:admin
AuthorizationBearer <token>

OAuth 2.0 authorization

In: header

Scope: upl:admin

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

userId?string

upl's id for the person (UserStorageSummary.user_id).

Formatint64
Range0 < value
updateMask*string

Which of the fields below to change: pool_mb. "bucket_cap_mb" is InvalidArgument (UPL-160).

bucketCapMb?integerDeprecated

Deprecated (UPL-160): a person has no per-bucket cap.

Formatint32
Range0 <= value <= 1073741824
poolMb?integer

The person's storage cap in MiB: the most all their personal buckets may hold together. 0 goes back to the deployment default; -1 is unlimited.

Formatint32
Range-1 <= value <= 1073741824
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://uploads-api.xeonr.io/uplim.api.v1.BucketsService/UpdateUserStorageLimits" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{    "updateMask": "poolMb"  }'
{
  "user": "map[bucketCount:2 bytesUsed:734003200 email:[email protected] overriddenBucketCount:0 poolBytes:21474836480 poolSource:TEAM_ENTITLEMENT_SOURCE_OVERRIDE providerId:urn:xeonr:auth:uid:user:3 userId:42 username:luke]",
  "bucketsRecapped": "0"
}