Update bucket
Updates bucket settings including name, aliases, type, and portal configuration.
Required scopes: upl:bucket:manage
Authorization
OAuth2 upl:bucket:manageOAuth 2.0 authorization
In: header
Scope: upl:bucket:manage
Header Parameters
Define the version of the Connect protocol
Define the timeout, in ms
Request Body
application/json
Reference to the bucket
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)
enum.defined_only = true
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
items <= 8Recheck Cloudflare status for all custom domain aliases validate:skip a bool has no bounds
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)
hostname1 <= length <= 64Update the bucket's display name This is a user-friendly label and does not affect routing (aliases handle that)
3 <= length <= 64Update the bucket's portal configuration
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
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.
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.
length <= 20480Response 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]"
]
}