Create Modified File
POST {{protocol}}://{{media_manager_url}}/file/modified
Created a Modified File.
Body: form-data
name | description |
---|---|
file_id | [id] Required. File ID |
filename | [string] Required. Filename |
bin_id | [id] Required. Bin ID |
cdnUrl | [string] Required if storageUrl is NOT in post body. CDN URL |
storageUrl | [string] Required if cdnUrl is NOT in post body. Storage URL |
actions_hash | [string] Optional. Hash of actions to be sent to modify service. |
created_by | [string] Optional. Legacy User |
Request Body
[{"name"=>"file_id", "value"=>"", "datatype"=>"null"}, {"name"=>"bin_id", "value"=>"", "datatype"=>"null"}, {"name"=>"title", "value"=>"", "datatype"=>"null"}, {"name"=>"filename", "value"=>"", "datatype"=>"null"}, {"name"=>"cdnUrl", "value"=>"", "datatype"=>"null"}, {"name"=>"storageUrl", "value"=>"", "datatype"=>"null"}, {"name"=>"actions_hash", "value"=>"", "datatype"=>"null"}, {"name"=>"created_by", "value"=>"", "datatype"=>"null"}]
RESPONSES
status: Created
{"message":"Created file zesty-logo.fc436d95368b952a7c29276241a20bf3.png","status":"OK","code":201,"data":{"id":"3-34b0d8e-u5wtc","bin_id":"1-34b0d20-f0yr4","group_id":"1-34b0d20-f0yr4","filename":"zesty-logo.fc436d95368b952a7c29276241a20bf3.png","title":"zesty-logo.fc436d95368b952a7c29276241a20bf3.png","type":"file","url":"https://xff3kv.media.zestyio.com/zesty-logo.fc436d95368b952a7c29276241a20bf3.png"}}