proofs

PATCH /api/v1/proofs/drafts/{id}

Changed on

Finalize a draft proof - set draft=False and add full metadata.

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/proofs/drafts/{id}
  • Auth
    HTTP bearer

Path parameters

idinteger required

A unique integer value identifying this Proof.

Request body

location_osm_idinteger nullable
type'PRICE_TAG' | 'RECEIPT' | 'GDPR_REQUEST' | 'SHOP_IMPORT'
  • PRICE_TAG - PRICE_TAG
  • RECEIPT - RECEIPT
  • GDPR_REQUEST - GDPR_REQUEST
  • SHOP_IMPORT - SHOP_IMPORT
datestring date nullable
receipt_price_countinteger nullable
receipt_price_totalnumber double nullable
receipt_online_delivery_costsnumber double nullable
ready_for_price_tag_validationboolean
owner_consumptionboolean nullable
owner_commentstring nullable
location_idinteger

Response

idinteger required
location_idinteger required
file_pathstring nullable
mimetypestring nullable
type'PRICE_TAG' | 'RECEIPT' | 'GDPR_REQUEST' | 'SHOP_IMPORT' required
  • PRICE_TAG - PRICE_TAG
  • RECEIPT - RECEIPT
  • GDPR_REQUEST - GDPR_REQUEST
  • SHOP_IMPORT - SHOP_IMPORT
image_md5_hashstring nullable
image_thumb_pathstring nullable
location_osm_idinteger nullable
datestring date nullable
receipt_price_countinteger nullable
receipt_price_totalnumber double nullable
receipt_online_delivery_costsnumber double nullable
ready_for_price_tag_validationboolean
owner_consumptionboolean nullable
owner_commentstring nullable
draftboolean
price_countinteger
prediction_countinteger
ownerstring nullable
sourcestring nullable
tagsstring[]
createdstring date-time
updatedstring date-time required

Changes

    • 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 optional property / to the response with the status