create_recipe
Create a new empty recipe in ReciPal. Use this to build a recipe from scratch; to preserve label settings from an existing recipe, clone it via scale_recipe instead.
Instructions
Create a new empty recipe. POST /recipes. Prefer scale_recipe (clone a fully-configured template) when you need label settings to match existing recipes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | Open key/value object of attributes. Keys are passed straight through to the ReciPal API namespaced under the resource (e.g. {name, package_yield_quantity, package_yield_unit, servings, packages, suggested_serving, sku, preparation, visual_unit_of_measure}). Call get_recipe on an existing recipe first to see the exact attribute names this account uses. Note that tags cannot be set here -- ReciPal accepts the request and silently ignores a tags string, and errors on other shapes. Tags do carry forward through scale_recipe when cloning a tagged template. | |
| as_json | No | Send JSON instead of form encoding. |