Create Bucket

POST {{baseUrl}}/storage/v1/b?project={{projectId}}&key={{apiKey}}

This request creates a bucket with the name bucketName on Google Cloud Storage.

Request Params

KeyDatatypeRequiredDescription
projectstring
keystring

Request Body

{"name"=>"{{bucketName}}"}

HEADERS

KeyDatatypeRequiredDescription
x-mock-response-namestring

RESPONSES

status: OK

{"kind":"storage#bucket","selfLink":"https://www.googleapis.com/storage/v1/b/{{bucketName}}","id":"{{bucketName}}","name":"{{bucketName}}","projectNumber":"0000000000","metageneration":"1","location":"US","storageClass":"STANDARD","etag":"CAE=","timeCreated":"2021-00-00T00:00:00.000Z","updated":"2021-00-00T00:00:00.000Z","iamConfiguration":{"bucketPolicyOnly":{"enabled":false},"uniformBucketLevelAccess":{"enabled":false}},"locationType":"multi-region"}