prices

PATCH /api/v1/prices/{id}

Changed on

Request

  • Base URL
    https://prices.openfoodfacts.org (the document declares no server; this is the origin it was published from)
  • URL
    https://prices.openfoodfacts.org/api/v1/prices/{id}
  • Auth
    HTTP bearer

Path parameters

idinteger required

A unique integer value identifying this Price.

Request body

product_codestring nullable
category_tagstring nullable
labels_tagsstring[] nullable
origins_tagsstring[] nullable
pricenumber double nullable
price_is_discountedboolean
price_without_discountnumber double nullable
datestring date nullable
receipt_quantitynumber double nullable
owner_commentstring nullable

Response

product_codestring nullable
category_tagstring nullable
labels_tagsstring[] nullable
origins_tagsstring[] nullable
pricenumber double nullable
price_is_discountedboolean
price_without_discountnumber double nullable
datestring date nullable
receipt_quantitynumber double nullable
owner_commentstring nullable

Changes

    • warning

      added the new LITER enum value to the //// response property for the response status

    • info

      added the new LITER enum value to the request property //// (media type: application/json)

    • info

      added the new LITER enum value to the request property //// (media type: application/x-www-form-urlencoded)

    • info

      added the new LITER enum value to the request property //// (media type: multipart/form-data)

    • breaking

      the request property's max was decreased to 10000000.00 (media type: application/json)

    • breaking

      the request property's max was decreased to 10000000.00 (media type: application/x-www-form-urlencoded)

    • breaking

      the request property's max was decreased to 10000000.00 (media type: multipart/form-data)

    • breaking

      the request property's max was decreased to 10000000.00 (media type: application/json)

    • breaking

      the request property's max was decreased to 10000000.00 (media type: application/x-www-form-urlencoded)

    • breaking

      the request property's max was decreased to 10000000.00 (media type: multipart/form-data)

    • breaking

      the request property type changed from no type to array (media type: application/json)

    • breaking

      the request property type changed from no type to array (media type: application/x-www-form-urlencoded)

    • breaking

      the request property type changed from no type to array (media type: multipart/form-data)

    • breaking

      the request property type changed from no type to array (media type: application/json)

    • breaking

      the request property type changed from no type to array (media type: application/x-www-form-urlencoded)

    • breaking

      the request property type changed from no type to array (media type: multipart/form-data)

    • breaking

      the response's property type changed from no type to array for status

    • breaking

      the response's property type changed from no type to array for status

    • warning

      added the new XCG enum value to the //// response property for the response status

    • warning

      added the new ZWG enum value to the //// response property for the response status

    • info

      added the new optional request property (media type: application/json)

    • info

      added the new optional request property (media type: application/x-www-form-urlencoded)

    • info

      added the new optional request property (media type: multipart/form-data)

    • info

      added the new XCG enum value to the request property //// (media type: application/json)

    • info

      added the new XCG enum value to the request property //// (media type: application/x-www-form-urlencoded)

    • info

      added the new XCG enum value to the request property //// (media type: multipart/form-data)

    • info

      added the new ZWG enum value to the request property //// (media type: application/json)

    • info

      added the new ZWG enum value to the request property //// (media type: application/x-www-form-urlencoded)

    • info

      added the new ZWG enum value to the request property //// (media type: multipart/form-data)

    • info

      added the optional property to the response with the status