How to upload the media to Studio using API

Community Novice

Hi i am just trying to upload the media to canvas studio using API's but i don't know how and where to add the file in the upload url would you please help me with that 
API used 

1. /media/uploads

Generate a URL to which a new media can be uploaded
`Where here i can generate the url but i don't know where to add the file'