APIProduct image

Delete a product image

DELETE
/public/v1/product-images/{id}

Deletes one image from its product. The image's slot becomes free; the other images keep their ranks. When your company requires every product to have a photo, deleting a product's last image is rejected with a 400; upload the replacement first.

The delete updates the product's updated_datetime and sends a product update webhook.

Required permission: products_permissions_edit (plus access to the product under team restrictions).

Authorization

Bearer
headerAuthorizationBearer <token>

API token generated in Distru (Settings → Distru API). Send it on every request as Authorization: Bearer YOUR_API_TOKEN.

Path Parameters

id*string

ID of the image, as listed in the product's images. An ID that doesn't exist for your company returns 404.

Response Body

No Content

Example Request
curl -X DELETE 'https://app.distru.com/public/v1/product-images/00000000-0000-0000-0000-00000000000d'
Example Response
Empty