Update the specified retention rule.
PUT {{baseUrl}}/n/:namespaceName/b/:bucketName/retentionRules/:retentionRuleId
Updates the specified retention rule. Rule changes take effect typically within 30 seconds.
Request Body
{"displayName"=>"fugiat sed", "duration"=>{"timeAmount"=>33631654, "timeUnit"=>"YEARS"}, "timeRuleLocked"=>"1993-03-09T04:33:40.358Z"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
if-match | string | The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag matches the ETag of | |
the existing resource, GET and HEAD requests will return the resource and PUT and POST requests will upload | |||
the resource. | |||
opc-client-request-id | string | The client request ID for tracing. | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"displayName":"laboris incididunt tempor","etag":"Lorem in tempor nulla","id":"exercitation Excepteur veniam ex consectetur","timeCreated":"1974-11-30T16:30:16.748Z","timeModified":"1954-02-28T20:09:29.288Z","duration":{"timeAmount":37814012,"timeUnit":"YEARS"},"timeRuleLocked":"1974-12-11T21:20:05.702Z"}