Create Bin

POST {{protocol}}://{{media_manager_url}}/bin

Create a bin based on the default storage driver and default cdn in the associated ecosystem or instance.

Body: form-data

namedescription
cdn_prefix[string] Optional. Unique. Used to specify the prefix of the CDN base URL
eco_id[id] Required if site_id is NOT in post body. Bin created will be associated to the Ecosystem ID
site_id[id] Required if eco_id is NOT in post body. Bin created will be associated to the Instance ID
name[string] Required. Name of bin that will be created

Request Body

[{"name"=>"cdn_prefix", "value"=>"", "datatype"=>"null"}, {"name"=>"eco_id", "value"=>"", "datatype"=>"null"}, {"name"=>"site_id", "value"=>"", "datatype"=>"null"}, {"name"=>"name", "value"=>"", "datatype"=>"null"}]

RESPONSES

status: Created

{"message":"Created bin Bin with CDN prefix","status":"OK","code":201,"data":{"id":"1-10ea22c0-h4xr0b","name":"Bin with CDN prefix","storage_name":"zesty-51ef106214121221ce97b9ce9e1f301772481c08"}}