File Creation

POST {{protocol}}://{{media_storage_url}}/upload/:provider/:bucket_name

Create a file.

In the URI:
bucketName is accessed by media manager service /sites/site_id/bins
provider is the driver name (gcp or rackspace)

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

Request Body

[{"name"=>"storage_driver", "value"=>"", "datatype"=>"null"}, {"name"=>"bin_id", "value"=>"", "datatype"=>"null"}, {"name"=>"group_id", "value"=>"", "datatype"=>"null"}, {"name"=>"user_id", "value"=>"", "datatype"=>"null"}]

RESPONSES

status: Created

{"message":"File uploaded","status":"Created","data":[{"id":"3-10f6d2f9-39cjr0","bin_id":"1-6c9618c-r26pt","group_id":"1-6c9618c-r26pt","filename":"AM.HJWWbJKO6.png","title":"AM.HJWWbJKO6.png","url":"https://8xbq19z1.media.zestyio.com/AM.HJWWbJKO6.png","type":"file"}],"code":201}