Product.deleteImages
Instructs to delete product images.
Request
JSON example:
[
{
"api":1,
"method":"auth",
"params":{
"username":"...",
"password":"..."
},
"id":1
},
{
"api":1,
"method":"Product.deleteImages",
"params":{
"imageIds":["1654251", "1654250", ...]
},
"id":1
}
]
Request fields:
Field name |
Type |
Value |
Description |
---|---|---|---|
method |
string |
"Product.deleteImages" |
Action name |
imageIds |
array |
["1654251", "1654250", ..] |
Ids of images to delete |
Response
Returns an array with boolean values to indicate the success of the deletion for each image.
JSON example:
[
{
"api":1,
"result":{
"1654251":true,
"1654250":true,
"1654249":true,
"1654246":true,
"1654244":true,
"1654240":true,
"1654236":true,
"1654232":false
},
"id":1
}
]
Response fields:
Field |
Type |
Value |
Description |
---|---|---|---|
result |
array |
["1654251" => true, "1654250" => …] |
Array of image Ids and the status of deletion:
|