Skip to content

Delete all product images in gallery

Request

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
Path
guidstringrequired

Product's guid

Example:94fe7ffc-7481-11e8-8216-002590dad85e
gallerystringrequired

Gallery name (shop or shop360)

Example:shop
Query
removeReferenceboolean

If product's variant image reference should be removed. Default false.

Example:removeReference=true
Headers
Content-Typestringrequired
Default:"application/json"
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'

Responses

OK

Bodyapplication/json
dataobject or nullrequired
errorsArray of objects or null(Errors)required
metadataobject(Metadata)required
Response
{ "data": null, "errors": [ {} ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }