Skip to Content
Xeonr Developer Docs
UplApiBuckets

Move a bucket to a different owner

POST
/uplim.api.v1.BucketsService/MoveBucket

Transfers ownership of a bucket to a team or back to the caller. Requires admin on the bucket and the upl admin team role in each team involved. The bucket's slug, aliases and URLs are unchanged; individual permission grants are preserved, while access-key grants that would cross the new ownership boundary are revoked.

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

The bucket to transfer.

destination?|

Where it should end up. Requires ADMIN on the bucket, and — when moving to or out of a team — the upl "admin" team role in that team.

revokeConflictingGrants?boolean

Access-key grants that would cross the new ownership boundary (a personal key holding a now-team-owned bucket, or a team key holding a bucket that left the team) are revoked as part of the move. Set true to acknowledge that; without it the request fails and names the affected keys. validate:skip a bool has no bounds

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://uploads-api.xeonr.io/uplim.api.v1.BucketsService/MoveBucket" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "bucket": "map[aliases:[screenshots i.example.com] bucketId:1042 bucketName:Screenshots createdAt:2026-03-14T11:02:45Z destination:BUCKET_DESTINATION_DEFAULT isPrimary:false lifecycleRuleCount:1 managedBy: ownerTeam:urn:xeonr:auth:team:0f6b5f8c-21f4-4b6e-9b4f-3a6a2c7d8e91 ownerTeamSlug:acme portalConfig:map[cdnMode:false] primaryAlias:i.example.com private:false slug:screenshots totalSpaceBytes:10737418240 type:BUCKET_TYPE_UPLOADS_DIRECTORY updatedAt:2026-10-22T09:30:00Z uploadCount:1284 url:https://i.example.com usedSpaceBytes:734003200]"
}