Create a new retention rule.
POST {{baseUrl}}/n/:namespaceName/b/:bucketName/retentionRules
Creates a new retention rule in the specified bucket. The new rule will take effect typically within 30 seconds. Note that a maximum of 100 rules are supported on a bucket.
Request Body
{"displayName"=>"fugiat sed", "duration"=>{"timeAmount"=>33631654, "timeUnit"=>"YEARS"}, "timeRuleLocked"=>"1993-03-09T04:33:40.358Z"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
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"}