Skip to Content
Xeonr Developer Docs
UplApiBuckets

Grant resource permission

POST
/uplim.api.v1.BucketsService/GrantResourcePermission

Grants a user access to a specific folder or upload within a bucket.

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?|&|

Reference to the bucket containing the resource

accountId?string

User to grant permission to Account (user) ID, a decimal integer.

Length1 <= length <= 64
permissionLevel?string

Permission level to grant enum.defined_only = true

Value in"BUCKET_PERMISSION_LEVEL_UNSPECIFIED" | "BUCKET_PERMISSION_LEVEL_READ" | "BUCKET_PERMISSION_LEVEL_READ_WRITE" | "BUCKET_PERMISSION_LEVEL_ADMIN"
folderRef?|&|

Grant access to a folder (and all descendants)

Response Body

application/json

application/json

curl -X POST "https://uploads-api.xeonr.io/uplim.api.v1.BucketsService/GrantResourcePermission" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "permission": "map[bucket:map[bucketId:1042 bucketName:Screenshots slug:screenshots url:https://i.example.com] folder:map[folderId:2207 path:/photos revokedSubpaths:[/photos/private]] permissionId:88 permissionLevel:BUCKET_PERMISSION_LEVEL_READ sharedAt:2026-10-22T09:30:00Z sharedBy:map[id:42 username:luke]]"
}