PutBucketPolicy method
Written by
Updated at August 2, 2024
Applies the access policy to the specified bucket.
Request
PUT /{bucket}?policy HTTP/2
Path parameters
Parameter | Description |
---|---|
bucket |
Bucket name. |
Query parameters
Parameter | Description |
---|---|
policy |
Required parameter that indicates the type of operation. |
Headers
Use the appropriate common headers in your requests.
Data schema
Data is transmitted in JSON format. For more information, see Data schema.
Response
Headers
Responses can only contain common response headers.
Response codes
For a list of possible responses, see Responses.