moderation

POST /api/v1/proofs/{id}/flag

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

Path parameters

idinteger required

A unique integer value identifying this Proof.

Request body

reason'WRONG_TYPE' | 'WRONG_PRICE_VALUE' | 'WRONG_CURRENCY' | 'WRONG_PRODUCT' | 'WRONG_LOCATION' | 'WRONG_DATE' | 'OTHER' required
  • WRONG_TYPE - Wrong type
  • WRONG_PRICE_VALUE - Wrong price value
  • WRONG_CURRENCY - Wrong currency
  • WRONG_PRODUCT - Wrong product
  • WRONG_LOCATION - Wrong location
  • WRONG_DATE - Wrong date
  • OTHER - Other
commentstring nullable
content_objectinteger required

Response

idinteger required
content_typestring required
object_idinteger required
reason'WRONG_TYPE' | 'WRONG_PRICE_VALUE' | 'WRONG_CURRENCY' | 'WRONG_PRODUCT' | 'WRONG_LOCATION' | 'WRONG_DATE' | 'OTHER' required
  • WRONG_TYPE - Wrong type
  • WRONG_PRICE_VALUE - Wrong price value
  • WRONG_CURRENCY - Wrong currency
  • WRONG_PRODUCT - Wrong product
  • WRONG_LOCATION - Wrong location
  • WRONG_DATE - Wrong date
  • OTHER - Other
commentstring nullable
status'OPEN' | 'CLOSED'
  • OPEN - Open
  • CLOSED - Closed
ownerstring nullable
sourcestring nullable
createdstring date-time
updatedstring date-time required

Changes