- URL:https://<root>/system/disasterrecovery/stores/<storeName>/backups/<backupName>/update(POST only)
- Required Capability: Default administrator role | Security and infrastructure
- Version Introduced:10.9.1
Description
This operation updates the retentionDate set for a backup during its creation.
Request parameters
Parameter | Details |
---|---|
retentionDate | The date, in Epoch milliseconds, when the backup will be eligible for cleanup by the backupRetentionCleaner system task. Note:Assigning a value of -1 to retentionDate will cause the backup to never expire, meaning that it will never be cleaned by the backupRetentionCleaner task. Example
|
f | The response format. The default format is html. Values: html | json | pjson |
Example usage
The following is a sample POST request for the update operation:
POST /context/admin/system/disasterrecovery/stores/default/backups/backup_example/update HTTP/1.1
Host: organization.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
retentionDate=1635945710988&f=pjson&token=KlSTH4q-4pY0WukJwy70XcOr8aNRzbEmHDdJSm2IPrWvHUEuVObjGiJwUuBZt4o6s6IOm7Wm268IDFUe4lmsEYfrmLrREreq6yz1vJk6Du10OCNRsH3AzdBgIkSoFyhFAk9tq6aWZaDSt_h9qEMa9e0Mhh51xT94AGliIPOgJSATX8DfW4nuqb4CGOF761WL9dfuZT49ep3GJ63mmh1JuesVcbOj0wfrpb7lY3z_5CL82K3Jd95X-oy2LulscnyU
JSON Response example
{"status": "success"}