setDocumentExpiration
Sets an expiration date on a document. After this time, the document will be purged from the database.
Parameters
id
The ID of the Document
expiration
Nullable expiration timestamp as a Date, set timestamp to null to remove expiration date time from doc.
Throws
Throws an exception if any error occurs during the operation.