# Product images

Managing product images.

## List of product images

 - [GET /api/products/{guid}/images/{gallery}](https://api.docs.shoptet.com/shoptet-api/openapi/product-images/getlistofproductimages.md): Returns list of product's images.

Data from this endpoint and from product's detail endpoint (list named
images when using ?include=images parameter) are the same.

Use this endpoint when working only with product images to save time.

## Delete all product images in gallery

 - [DELETE /api/products/{guid}/images/{gallery}](https://api.docs.shoptet.com/shoptet-api/openapi/product-images/deleteallproductimagesingallery.md): 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.

## Product images update

 - [PATCH /api/products/{guid}/images/{gallery}](https://api.docs.shoptet.com/shoptet-api/openapi/product-images/getproductimagesupdate.md): Using this endpoint you can modify product images attributes, such as
description and priority (order). Maximum of 100 images can be sent at
once.

## Product images insertion

 - [POST /api/products/{guid}/images/{gallery}](https://api.docs.shoptet.com/shoptet-api/openapi/product-images/createproductimages.md): Using this endpoint you can upload new images to a product. This is an
asynchronous request,

see how [Asynchronous
requests](https://developers.shoptet.com/asynchronous-requests/) work on
our

developer's portal. Maximum of 100 images can be sent at once.

## Product images source update

 - [PATCH /api/products/{guid}/images/{gallery}/source](https://api.docs.shoptet.com/shoptet-api/openapi/product-images/updateproductimagessource.md): Using this endpoint you can modify product image attributes and also
upload a new image and replace the existing one.

This is an asynchronous request,  see how [Asynchronous
requests](https://developers.shoptet.com/asynchronous-requests/) work on our developer's portal.

## Delete one product image

 - [DELETE /api/products/{guid}/images/{gallery}/{imageName}](https://api.docs.shoptet.com/shoptet-api/openapi/product-images/deleteoneproductimage.md): Deletes product's image. If removeReference parameter is not present
or set to false and if image is referenced

as variant image, then image won't be deleted and response will have
status code 409 Conflict.

If removeReference is set to true, then this reference will be removed
with the image.

