Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Add Additional Images To Product Using Api Rate Topic   - - - - -

 
  • psirus0588
  • Newbie
  • Trial users
  • Join Date: 24-Mar 16
  • 2 posts

Posted 24 March 2016 - 10:40 AM #1

Hello all. I need add additional images to product using API, after reading docs wrote this code for example:

curl --user ".$conf['login'].":".$conf['APIkey']." 
     --header 'Content-Type: application/json' 
     -d '{\"image_pairs\": 
             {\"detailed\": 
                  {\"image_path\": \"http://rusevik.ru/data/news/548e885b9b0c4.jpg\"}
             },
          \"main_pair\": 
             {\"detailed\": 
                  {\"image_path\": \"http://rusevik.ru/data/news/548e885b9b0c4.jpg\"}
             }
         }' 
     -X PUT 'http://example.com/api/products/1'

Main image is added, but how add additional images? Has anyone experienced this?