We set ttlSeconds on objects created via createUploadUrl / uploadBuffersToObjectStore, and now need to change the TTL policy for objects that already exist in the store (e.g. remove the expiry on files that were uploaded with one). Per the docs (https://developer.atlassian.com/platform/forge/storage-reference/object-store-api/), ttlSeconds only appears to be settable at creation time, and per this thread omitting it on new uploads stores them indefinitely: Forge Object store default ttl
What we haven’t found is any way to change the TTL of an object that’s already stored — fos.get() only returns metadata, fos.delete() only removes it, and there doesn’t seem to be a copy/update operation.
- Is there any supported way — API, internal mechanism, or otherwise — to change the TTL of an object that’s already stored, without re-uploading it?
- If not, is a download-and-re-upload under a new key the recommended way to move an object off an expiring TTL, or is there a better pattern?
Any pointers appreciated.