Skip to content

Delete one product image

Request

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.

Security
shoptetAccessToken or shoptetPrivateApiToken
Path
guidstringrequired

Product's guid

Example:92d77e60-7481-11e8-8216-002590dad85e
gallerystringrequired

Gallery name (shop or shop360)

Example:shop
imageNamestringrequired

Filename

Example:52.png
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/92d77e60-7481-11e8-8216-002590dad85e/images/shop/52.png?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": {}, "errors": [ {} ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }