Skip to Content
Xeonr Developer Docs
UplApiBuckets

Update bucket

POST
/uplim.api.v1.BucketsService/UpdateBucket

Updates bucket settings including name, aliases, type, and portal configuration.

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

updateMask?string

Field mask to specify which fields to update Valid paths: "type", "aliases", "primary_alias", "bucket_name", "portal_config", "private", "cors", "policy_json" If not provided, all non-empty fields will be updated (legacy behavior)

type?|

enum.defined_only = true

aliases?array<>

Set the complete list of aliases for the bucket The system will automatically add new aliases and remove missing ones Note: Cannot remove primary alias unless setting a new one

Itemsitems <= 8
recheckAliasStatus?boolean

Recheck Cloudflare status for all custom domain aliases validate:skip a bool has no bounds

primaryAlias?|

Set the primary alias for the bucket Must be a verified custom domain or a non-custom domain Can be set to a new alias being added in the same request (for non-custom domains)

Formathostname
Length1 <= length <= 64
bucketName?|

Update the bucket's display name This is a user-friendly label and does not affect routing (aliases handle that)

Length3 <= length <= 64
portalConfig?|

Update the bucket's portal configuration

private?|

Toggle the bucket's private flag (see Bucket.private). The slug is immutable and cannot be updated through this RPC. validate:skip a bool has no bounds

cors?|

Replace the CORS configuration. With "cors" in the update mask: supplying a configuration sets it (an empty rules list means "allow no cross-origin reads"), while omitting it clears back to the cdn_mode-derived default.

policyJson?|

Replace the bucket policy. With "policy_json" in the update mask, an empty string removes the policy. Documents outside upl's supported subset are rejected.

Lengthlength <= 20480
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://uploads-api.xeonr.io/uplim.api.v1.BucketsService/UpdateBucket" \  -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]",
  "aliasStatus": [
    "map[alias:i.example.com createdAt:2026-03-14T11:02:45Z fallbackHostname:fallback.upl.im isCustomDomain:true isSlug:false status:active verifiedAt:2026-03-14T11:20:03Z]"
  ]
}