Product Image Delete Rest Api not working right?

Highlighted
Shopify Partner
44 0 16

Hi, seems like a recent issue. Delete Product Images not working using 

 

DELETE /admin/api/2019-04/products/'.$pid.'/images/'.$image['id'].'.json'

 

Please see header request ids:

 

04396769-8085-4ed6-ad87-92a66df58800

e7e90366-0490-4f46-8010-c8a21f10ab9c

00aecfa8-a716-43e9-b6c8-724b0229f7a5

c958dafa-481e-4312-b898-82f98991f965

 

What is the issue here?

 

0 Likes
Shopify Staff
Shopify Staff
268 36 38

Hey @Jason27,

 

They're returning 404's. So the image or the product has already been deleted or doesn't exist. Is this unexpected? Are you still experiencing issues?

0 Likes
Shopify Partner
44 0 16

Hi, does the request header id provide you the whole DELETE request? The PID and Image ID should be within the request. I believe that it is malfunctioning intermittently on some specific shops and that the pid and image id do exist at the time of executing the call.

0 Likes