Admin property management

Rename Property

Rename a property across all products

When renaming a property that already exists:

  • If both properties have the same value: keep one entry

  • If both properties have different values: keep the original property's value

  • old_property: The current property name

  • new_property: The target property name

POST
/admin/property/rename
AuthorizationBearer <token>

In: header

old_propertyOld Property
new_propertyNew Property

Response Body

curl -X POST "https://api.folksonomy.openfoodfacts.org/admin/property/rename" \  -H "Content-Type: application/json" \  -d '{    "old_property": "string",    "new_property": "string"  }'
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}