Did you find an answer to this question? I could only create an API that uses online images. But, I couldn't find any way to upload local images to the server. The closest I found is a LocalObject, but this seem local to the cloud, not to my computer. Or using a form to upload a local image, but in this case it should be uploaded automatically by the code.