Upload Object
POST {{baseUrl}}/upload/storage/v1/b/{{bucketName}}/o?name={{fileName}}&uploadType=media
This request uploads a file to Google Cloud Storage with name fileName
. Please upload the file in the body of the request using the binary format.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
name | string | ||
uploadType | string |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
x-mock-response-name | string |
RESPONSES
status: OK
{"kind":"storage#object","id":"{{bucketName}}/testing/000000000","selfLink":"https://www.googleapis.com/storage/v1/b/{{bucketName}}/o/testing","mediaLink":"https://storage.googleapis.com/download/storage/v1/b/{{bucketName}}/o/testing?generation=000000000\u0026alt=media","name":"testing","bucket":"{{bucketName}}","generation":"000000000","metageneration":"1","contentType":"image/jpeg","storageClass":"STANDARD","size":"22901","md5Hash":"samplemd5hash==","crc32c":"abc00==","etag":"sampleetag/00000=","timeCreated":"2021-00-00T00:00:00.000Z","updated":"2021-00-00T00:00:00.000Z","timeStorageClassUpdated":"2021-00-00T00:00:00.000Z"}