Skip to main content
REST API reference

Manage SnapLock file retention time

Manage SnapLock file retention time using this API to set and extend the retention period of Write Once Read Many (WORM) files. Execute privileged-delete operations to modify retention settings as necessary.

This API manages the SnapLock retention time of a file. You can perform a privileged-delete operation by executing this API.

Examples

  1. Sets the SnapLock retention time of a file:

 PATCH "/api/storage/snaplock/file/000dc5fd-4175-11e9-b937-0050568e3f82/%2Ffile2.txt" '{"expiry_time": "2030-02-14T18:30:00+5:30"}'
  1. Extends the retention time of a WORM file:

 PATCH "/api/storage/snaplock/file/000dc5fd-4175-11e9-b937-0050568e3f82/%2Ffile2.txt" '{"expiry_time": "infinite"}'
  1. Extends the retention time of a WORM file:

 PATCH "/api/storage/snaplock/file/000dc5fd-4175-11e9-b937-0050568e3f82/%2Ffile2.txt" '{"retention_period": "P1M"}'
  1. Extends the retention time of a WORM file:

 PATCH "/api/storage/snaplock/file/000dc5fd-4175-11e9-b937-0050568e3f82/%2Ffile2.txt" '{"retention_period": "infinite"}'