Bucket Creation

POST {{protocol}}://{{media_storage_url}}/bucket

Create a bucket.

This API only allows Service to Service consumption. A zesty user cannot use this API.

X-Service-Auth-Content and X-Service-Auth-Sig custom headers are used to consume this API via Service to Service token.

Body: raw JSON

namedescription
storage_driver[string] Required. Storage Provider. accepted value is gcp

Request Body

{"storage_driver"=>"", "storage_name"=>""}

HEADERS

KeyDatatypeRequiredDescription
X-Service-Auth-Contentstring
X-Service-Auth-Sigstring

RESPONSES

status: Created

{"message":"Created Bucket","status":"Created","data":{"name":"test_storage_gcp_2","storageUrl":"https://test_storage_gcp_2.storage.googleapis.com"},"code":201}