Images

Unselect Image

This endpoint allows the user to unselect a photo for a product. The user must provide the product code and the image ID to unselect.

POST
/cgi/product_image_unselect.pl
User-Agent<token>

Identification using the User-Agent header. This is recommended in all requests so that we can contact you if there are issues. If we cannot identify the source of problematic API queries, we may have to block them. User-Agent header in the format 'app_name/app_version (URL or contact info)'

In: header

code?string

code of the product

id?string

image field (image id) of the photo to unselect

Response Body

curl -X POST "https://world.openfoodfacts.net/cgi/product_image_unselect.pl"
{
  "status": "status ok",
  "status_code": 0,
  "imagefield": "front_fr"
}