Updates a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate. This method supports patch semantics.
Request
HTTP request
PATCH https://storage.googleapis.com/storage/v1/b/ bucket 
 
In addition to standard query parameters , the following query parameters apply to this method.
To see an example of how to include query parameters in a request, see the JSON API Overview page.
Parameters
bucket 
string 
ifMetagenerationMatch 
long 
ifMetagenerationNotMatch 
long 
predefinedAcl 
string 
Acceptable values are:
-  authenticatedRead: Project team owners getOWNERaccess, andallAuthenticatedUsersgetREADERaccess.
-  private: Project team owners getOWNERaccess.
-  projectPrivate: Project team members get access according to their roles.
-  publicRead: Project team owners getOWNERaccess, andallUsersgetREADERaccess.
-  publicReadWrite: Project team owners getOWNERaccess, andallUsersgetWRITERaccess.
iamConfiguration.uniformBucketLevelAccess.enabled 
is set to true 
, requests that include this parameter fail with a 400 Bad Request 
response.predefinedDefaultObjectAcl 
string 
Acceptable values are:
-  authenticatedRead: Object owner getsOWNERaccess, andallAuthenticatedUsersgetREADERaccess.
-  bucketOwnerFullControl: Object owner getsOWNERaccess, and project team owners getOWNERaccess.
-  bucketOwnerRead: Object owner getsOWNERaccess, and project team owners getREADERaccess.
-  private: Object owner getsOWNERaccess.
-  projectPrivate: Object owner getsOWNERaccess, and project team members get access according to their roles.
-  publicRead: Object owner getsOWNERaccess, andallUsersgetREADERaccess.
iamConfiguration.uniformBucketLevelAccess.enabled 
is set to true 
, requests that include this parameter fail with a 400 Bad Request 
response.projection 
string 
noacl 
.Note: Currently only works if you override the default and specify
full 
.Acceptable values are:
-  full: Include all properties.
-  noAcl: Omitowner,acl, anddefaultObjectAclproperties.
Request body
In the request body, supply the relevant portions of a bucket resource , according to the rules of patch semantics.
For information about status and error codes returned by this API, see the reference page .
Response
If successful, this method returns a bucket resource in the response body.
Try it!
Use the APIs Explorer below to call this method on live data and see the response.

