PUT Object Retention

Configures the retention parameter on an object.

Request Syntax

PUT /<object-key>?retention&versionId=<version-id> HTTP/1.1
Host: <bucket-name>.s3.example.com
Date: <Thu, 15 Nov 2016 00:17:21 GMT>
Authorization: <authorization-string>

URI Request Parameters


The version ID of the object to which you want to apply a retention period.

Request Body

For more information about the request elements that this operation uses, see ObjectLockRetention.

Example Request Body


Response Syntax

HTTP/1.1 200

Response Elements

On success, the service returns an HTTP 200 response.