Images

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

Request

  • Base URL
    https://world.openfoodfacts.net
  • Auth
    API key in header User-Agent

Request body multipart/form-data

codestring

code of the product

idstring

image field (image id) of the photo to unselect

Example request

{
  "code": "4251105501381",
  "id": "front_fr"
}

Response

OK

statusstring

status of the unselect operation

status_codenumber

status code of the operation

imagefieldstring

image field that was unselected

Example response

{
  "status": "status ok",
  "imagefield": "front_fr"
}

Changes

    • breaking

      the request's body type changed from no type to object

    • info

      added the new optional request property code

    • info

      added the new optional request property id