How to upload file from link using API

Hello,

I would like to ask if it is possible to use the API for uploading image files from link/url?