product_media.list
product_media.list (string $sku)
Retrieve list of product images
code | message |
---|---|
100 | Requested store view not found. |
101 | Product not exists. |
product_media.types
product_media.types (number $setId)
Retrieve product image types
product_media.create
product_media.create (string $sku, object $data)
Upload new product image
code | message |
---|---|
100 | Requested store view not found. |
101 | Product not exists. |
102 | Invalid data given. Details in error message. |
104 | Image creation failed. Details in error message. |
107 | Requested product doesn’t support images |
product_media.update
product_media.update (string $sku, string $file, object $data)
Update product image
true
, if the image has been uploaded
code | message |
---|---|
100 | Requested store view not found. |
101 | Product not exists. |
102 | Invalid data given. Details in error message. |
103 | Requested image not exists in product images’ gallery. |
104 | Image creation failed. Details in error message. |
107 | Requested product doesn’t support images |
product_media.remove
product_media.remove (string $sku, string $file)
Remove product image
true
, if the image has been removed
code | message |
---|---|
100 | Requested store view not found. |
101 | Product not exists. |
106 | Image not removed. Details in error message. |
107 | Requested product doesn’t support images |