PutBucketRequestPayment
Last Updated:2021-12-08
Interface Description
This interface is used to create the requester payment feature.
Note: Only the bucket owner with the FULL_CONTROL permission can initiate this request.
Request
PUT /?requestPayment HTTP/1.1
Host: <BucketName>.bj.bcebos.com
Date: <Date>
Authorization: <Authorization_String>
Name | Type | Description | Required? | Remarks |
---|---|---|---|---|
requestPayment | String | It sets the requester payment rules. | Yes | When the value is Requester, it indicates that the requester makes a payment. When the value is BucketOwner, it indicates that the requester billing feature is disabled. |
Response
Example
PUT /?requestPayment HTTP/1.1
Host: <BucketName>.bj.bcebos.com
Date: <Date>
Authorization: <Authorization_String>
{"requestPayment": "Requester"}