Add API upload to upload file from device to Genieacs

I want to add an API that uploads a file from the device to
genieacs.Someone has an idea about that?