Swap ingredients in recipes

Replaces an ingredient with another in the composition of a recipe, or multiple recipes.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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.

Body Params
int32
required
Defaults to 0

The ID of the ingredient to be replaced

int32
required
Defaults to 0

The ID of the ingredient that will replace the original one

recipes
array of int32s
Defaults to

The IDs of the recipes that contain the ingredient to be replaced.

recipes
Response

Language
Credentials
OAuth2
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json