Better API support for protected products #2012
Labels
🧽 API - Quality
API READ
All READ APIs include Product, Search…
API
Issues related to the Open Food Facts API. More specific labels exist & should be used (API WRITE…)
🧽 Data quality
https://wiki.openfoodfacts.org/Quality
protected data
Is your feature request related to a problem? Please describe.
An API user can not determine and react on protected products.
Describe the solution you'd like
Add a protected state to the product json. And if needed specify which fields are protected. If the info is in the product json, we can prohibit editing those fields.
If a protected product is written return with an error json, so the api user sees what happened and can react on it.
The text was updated successfully, but these errors were encountered: