put https://api.apicbase.com/api/v2/recipes/ingredients/swap/
Replaces an ingredient with another in the composition of a recipe, or multiple recipes.
This endpoint replaces every occurrence of an ingredient in the recipes specified in the body with a different ingredient.
This endpoint is useful when introducing a new ingredient that replaces a similar ingredient that for some reason should no longer be used. It allows you to edit all recipes in a bulk action to replace the old ingredient with the new one in their composition.