Admin property management

Check Property Clash

Check for potential clashes when renaming a property

Returns information about products that would be affected by the rename:

  • old_property: The current property name
  • new_property: The target property name

Returns counts and list of conflicting products where both properties exist

POST
/admin/property/check-clash
AuthorizationBearer <token>

In: header

old_propertyOld Property
new_propertyNew Property

Response Body

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