Deletes all product's images by gallery name. If removeReference parameter is not present or set to false and if image is referenced
as variant image, then image will be skipped and present in errors in response.
If removeReference is set to true, then this reference will be removed with the image.
Returns 200 status code. If any image deletion failed, it will be noted in errors section in response.
Security
shoptetAccessToken or shoptetPrivateApiToken
- Mock serverhttps://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/products/{guid}/images/{gallery}
- https://api.myshoptet.comhttps://api.myshoptet.com/api/products/{guid}/images/{gallery}
- shoptetAccessToken
- shoptetPrivateApiToken
curl -i -X DELETE \
'https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/products/94fe7ffc-7481-11e8-8216-002590dad85e/images/shop?removeReference=true' \
-H 'Content-Type: application/json' \
-H 'Shoptet-Access-Token: YOUR_API_KEY_HERE'Response
{ "data": null, "errors": [ { … } ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }