We had the below scenario where the expiration value of the couchbase doc was set to zero.
The bucket TTL value was enabled and it was set to 120sec.
We had a document with TTL 60s and then we login to CB UI,doc in UI > edited one of the fields > clicked Save. Then we can find the TTL value set to 120s.
Is there any way to preserve the TTL value of doc while updating through UI. Moreover, the expiration value in the metadata section in UI is non-editable.
Refer to the web console documentation. If it doesn’t indicate an option for preserving or updating the expiration, then it’s not possible. Couchbase Web Console | Couchbase Docs
Most SDKs has preserveExpiry(boolean preserveExpiry) Specifies whether an existing document’s expiry should be preserved.
N1QL has Settings and Parameters | Couchbase Docs if you know key u can set parameter in preferences and issue update.