Add images variation via Rest API
-
Hi, I am trying to upload multiple images via api rest. But I did not get how to upload the images, get their ID to insert via meta data.
Which order should I upload? It is a lot of images.
How can I get images ID after upload?
How can I prepare the JSON?
Is there a page I need to configure at woocomerce php in order for this work?{‘regular_price’: ‘21.1’, ‘image’: {‘src’: ‘https://www.alphabroder.com/images/alp/prodDetail/01940e1_04_p.jpg’}, ‘woo_variation_gallery_images’: [{‘src’: ‘https://www.alphabroder.com/images/alp/prodDetail/01940e1_04_p.jpg’}, {‘src’: ‘ https://www.alphabroder.com/images/alp/prodGallery/01940e1_04_g.jpg’}, {‘src’: ‘ https://www.alphabroder.com/images/alp/prodDetail/01940e1_04_p.jpg’}, {‘src’: ‘ https://www.alphabroder.com/images/alp/backDetail/01940e1_bk_04_p.jpg’}, {‘src’: ‘ https://www.alphabroder.com/images/alp/sideDetail/01940e1_sd_04_p.jpg’}], ‘attributes’: [{‘id’: 4, ‘name’: ‘Size’, ‘option’: ‘M’}, {‘id’: 3, ‘name’: ‘Color’, ‘option’: ‘EC BLK CLSSC STR’}]}
- The topic ‘Add images variation via Rest API’ is closed to new replies.