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.
bucketTypeandstorageBackendcannot 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 |
|---|---|---|---|
| String | The name of the bucket to update. | Yes |
| String | Controls document compression. | Yes |
| Boolean | When | Yes |
| Long | Maximum TTL for all documents in the bucket, in hours. | Yes |
| Integer | Number of replica copies of each document (0–3). | Yes |
| Long | RAM quota allocated to this bucket across all nodes, in megabytes. | Yes |
| Long | How long to wait for the update operation to complete before timing out. | Yes |