Add the ability in the API to remove a translated field from a product #8367
Labels
API WRITE
WRITE API to allow sending product info and image
🤳🥫 mobile apps
🌍 Multilingual products
Product name, Generic name, Ingredients, Packaging text are multilingual fields.
⏰ Stale
This issue hasn't seen activity in a while. You can try documenting more to unblock it.
⭐ 🐛 top bug
Top bug.
What
We should be able to remove it
product_name
).We cannot remove a translation today: if we put an empty string the translation becomes a "populated" empty string.
I also tried to put explicitly a
null
value instead of an empty string, but got rejected by/cgi/product_jqm2.pl
: "Could not save product - null".To Reproduce
Affected tags:
'product_name_'
'ingredients_text_'
'packaging_text_'
Affected product:
No "
product_name
" for the Italian version, and an empty translation for English:https://it.openfoodfacts.org/api/v3/product/3760091722508?fields=product_name,product_name_languages&lc=it
Expected behavior
product_name
, like the English or the first translation availableType of device
REST-API
Part of
The text was updated successfully, but these errors were encountered: