ReadonlyaccountAccount that owns the bucket.
ReadonlybucketID of the bucket to update.
Optional ReadonlybucketUpdated user-defined key-value metadata. Replaces all existing metadata.
Keys must be 1-50 UTF-8 bytes and must not start with b2-; the aggregate
UTF-8 byte length of all values must be at most 10,000 bytes. Keys must
match BUCKET_INFO_KEY_PATTERN. BucketInfo has no documented
pair-count cap.
Optional ReadonlybucketNew access level for the bucket.
Optional ReadonlycorsUpdated CORS rules. Replaces all existing rules.
A bucket may have at most 100 rules. Each rule name must be unique, 6-63
characters, match [A-Za-z0-9-], and not start with b2-. Each rule's
name, origins, operations, allowed headers, and exposed headers must total
less than 1,000 UTF-8 bytes. maxAgeSeconds must be at most 86,400.
Optional ReadonlydefaultUpdated default Object Lock retention policy.
Optional ReadonlydefaultUpdated default server-side encryption setting.
Optional ReadonlyfileWhether to enable Object Lock. Can only transition from disabled to enabled.
Optional ReadonlyifOptimistic locking: only update if the bucket's current revision matches this value.
Optional ReadonlylifecycleUpdated lifecycle rules. Replaces all existing rules.
Optional ReadonlyreplicationUpdated replication configuration.
Request parameters for the
b2_update_bucketAPI call.