Put object lifecycle policy.

PUT {{baseUrl}}/n/:namespaceName/b/:bucketName/l

Creates or replaces the object lifecycle policy for the bucket.

Request Body

{"items"=>[{"action"=>"anim Lorem incididunt eiusmod", "isEnabled"=>true, "name"=>"non aliqua eiusmod", "timeAmount"=>-21027883, "timeUnit"=>"DAYS", "objectNameFilter"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "target"=>"objects"}, {"action"=>"nisi", "isEnabled"=>true, "name"=>"mollit sunt sint Ut incididunt", "timeAmount"=>-28348216, "timeUnit"=>"DAYS", "objectNameFilter"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "target"=>"objects"}]}

HEADERS

KeyDatatypeRequiredDescription
opc-client-request-idstringThe client request ID for tracing.
if-matchstringThe 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.
if-none-matchstringThe entity tag (ETag) to avoid matching. The only valid value is '*', which indicates that the request should
fail if the resource already exists.
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;items&quot;:[{&quot;action&quot;:&quot;officia enim laborum Ut&quot;,&quot;isEnabled&quot;:false,&quot;name&quot;:&quot;culpa esse sit cillum&quot;,&quot;timeAmount&quot;:46724691,&quot;timeUnit&quot;:&quot;YEARS&quot;,&quot;objectNameFilter&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;target&quot;:&quot;objects&quot;},{&quot;action&quot;:&quot;tempor deserunt voluptate cupidatat&quot;,&quot;isEnabled&quot;:true,&quot;name&quot;:&quot;e&quot;,&quot;timeAmount&quot;:-53292398,&quot;timeUnit&quot;:&quot;DAYS&quot;,&quot;objectNameFilter&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;target&quot;:&quot;objects&quot;}],&quot;timeCreated&quot;:&quot;1960-02-05T16:17:48.687Z&quot;}