Product images deletion
· One min read
We are working hard to support product images maintenance via API. As one of the preparation steps we have released two DELETE endpoints today:
- Delete product image – deletes one image specified by a
galleryand animageNamefor a product specified by aguid. - Delete all product images – deletes all images in one gallery of one product.
There are two galleries used in Shoptet:
shop– this is the common gallery for product images displayed on the product detail page;shop360– this is a gallery for a 360° image, if used.
Both of the endpoints support optional parameter ?removeReference=true|false. It affects eventual reference of an image to one of the product variants. If true, the reference (if any) is removed. If there would be a reference, but the parameter is false or not provided, the deletion would fail with code 409.