Skip to Content
Xeonr Developer Docs
UplApiBuckets

Get team entitlement

POST
/uplim.api.v1.BucketsService/GetTeamEntitlement

What a team is entitled to in upl: its storage pool (the most all its buckets may hold together) when it has one, with where it comes from, and the defaults a form for a new team bucket starts from. can_update_cap (the pool) and can_update_defaults say what the caller may change with UpdateTeamEntitlement. The per-bucket cap fields are deprecated and never set (UPL-160).

Access: any upl role in the team (reader or above), read from the token, else PermissionDenied. Folder- and bucket-scoped integration tokens, client_credentials tokens and tokens carrying RAR authorization details are refused with PermissionDenied.

Required scopes: upl:bucket:read

Authorization

OAuth2 upl:bucket:read
AuthorizationBearer <token>

OAuth 2.0 authorization

In: header

Scope: upl:bucket:read

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

ownerScope*|

The team. Only a team has an entitlement; personal is InvalidArgument.

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://uploads-api.xeonr.io/uplim.api.v1.BucketsService/GetTeamEntitlement" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{    "ownerScope": "map[team:urn:xeonr:auth:team:0f6b5f8c-21f4-4b6e-9b4f-3a6a2c7d8e91]"  }'
{
  "entitlement": "map[canUpdateCap:false canUpdateDefaults:true newBucketDefaults:map[cdnMode:true private:true] newBucketDefaultsSource:TEAM_ENTITLEMENT_SOURCE_OVERRIDE poolBytes:107374182400 poolSource:TEAM_ENTITLEMENT_SOURCE_BINDING]"
}