upload method
Written by
Updated at September 2, 2025
Uploads the bucket object lifecycle configuration to Object Storage.
For more information on getting started with the API and the general request format, see How to use the S3 API.
Request
PUT /{bucket}?lifecycle HTTP/2
Path parameters
| Parameter | Description |
|---|---|
bucket |
Bucket name. |
Request parameters
| Parameter | Description |
|---|---|
lifecycle |
Required parameter that indicates the type of operation. |
Headers
Use the appropriate common headers in your request.
The Content-MD5 header is required.
Data schema
The configuration type is described in Bucket object lifecycle configuration.
Response
Headers
Responses can only contain common headers.
Response codes
For a list of possible responses, see Responses.