Expose APIs through REST/SDKs to set collection TTL value during collection creation and updating it afterwards.
CreateCollection CollectionSpec must include MaxTTL
Implemented in the java client as per https://github.com/couchbase/couchbase-jvm-clients/commit/50f98c3c6f0f347e8f4e3f14013882648fe7f8e7
As discussed with Shivani Gupta and Brett Lawson, reassigning this ticket to SDK team for updating SDK RFCs and implementing the APIs in Java client.
Daniel Owen, with reference to MB-30487, found the REST API for creating collections with maxTTL,
#] curl -X POST 10.112.191.101:8091/pools/default/buckets/default/collections/_default -u Administrator:password -d name=col_1 -d maxttl=100
Also for modifying the maxTTL for existing collection, there is ticket already open - MB-31806.
So we can close this bug.
Hi Ashwin Govindarajulu,
Should this ticket be for the sdks? and ns_server for the REST interface?
Or is there work to be done in KV to support this.