Delaying the Protection Period of Bucket Compliance Retention Policies
Updated at:2025-11-03
API description
This API is used to extend the protection period of the compliance retention policy.
Request URI
POST /v1/{bucketName}/?extendobjectlock
| Parameter name | Parameter type | Required or not | Description | Example value | Parameter location |
|---|---|---|---|---|---|
| bucketName | String | Yes | Bucket name | "bucketName_example" | Path |
Parameters of request body
Description of the data structure of request body fields
| Parameter name | Parameter type | Required or not | Description | Example value |
|---|---|---|---|---|
| extendRetentionDays | Integer | Yes | The new protection period in days. The protection period cannot be shortened. | 2 |
Response body parameters
Description of the data structure of response body fields
Request example
JSON
1POST /v1/bucketName_example/?extendobjectlock
2 <Common request headers>
3{
4 "extendRetentionDays" : 2
5}
Response example
JSON
1HTTP/1.1 200 OK
2 <Common response headers>
3{ }
Error code
Please refer to the general error codes
