Uploading a local image using the API

Unless there is some reason you cannot, I recommend looking at the import script directory to see importers that use json files. It’ll be easier than the API.