Hi, I plan to interact with my M2 v2.2.3 (free version) primarily via REST API.
API calls work just fine so far, however I would like to be able to POST more data per API call.
Specifically, is it possible to create a product AND pass multiple base64-encoded images for it via single REST API call or multiple API calls is the only way to go?
Solved! Go to Solution.
No, this is not possible using Magento 2 REST api. Upto Magento 2.2 REST api only supports single object calls at given time for image calls.
You need to call multiple call for multiple image.
Okay, thank you
you said "up to magento 2.2". does that mean, that you might add this feature in coming releases?
Upto Magento 2.2 Means, Still Magento 2.2.* Multiple image call rest api is not working.
I dont know about future release, magento will support multiple image REST API or not.
Yes , looking at the existing magento 2 structure as of now there is no multiple images upload rest api available for products !!
But if you still wanted to upload multiple images , you can do it by calling that function in looping structure.
Previously i have done this , i have create a function which does upload product image using Rest api - then i have called that function dynamically in a loop with required arguments and no of images you wanted to upload.
so on that way you can achieve this - Hope it helps !!