Change Intelligence is coming.

Couchbase updateBucket

Last updated: July 13, 2026

Updates the settings of an existing Couchbase bucket. All attributes must be specified on every update because the Couchbase SDK writes all bucket settings together in a single call.

Known limitations:

  • All attributes must be specified even if you only intend to change one value. The SDK updates all settings at once.

  • bucketType and storageBackend cannot be changed after bucket creation. To change either, you must drop and recreate the bucket.

  • There is no automatic rollback support.

Available attributes

Attribute

Type

Description

Required

bucketName

String

The name of the bucket to update.

Yes

compressionMode

String

Controls document compression. OFF disables compression. PASSIVE compresses only when the client requests it. ACTIVE enables server-side proactive compression.

Yes

flushEnabled

Boolean

When true, enables the flush operation on this bucket.

Yes

maxExpiryInHours

Long

Maximum TTL for all documents in the bucket, in hours.

Yes

numReplicas

Integer

Number of replica copies of each document (0–3).

Yes

ramQuotaMB

Long

RAM quota allocated to this bucket across all nodes, in megabytes.

Yes

timeoutInSeconds

Long

How long to wait for the update operation to complete before timing out.

Yes

loading

loading

loading