katana_public_api_client.api.recipe.create_recipes¶
katana_public_api_client.api.recipe.create_recipes
¶
Classes¶
Functions¶
asyncio(*, client, body)
async
¶
Create recipes
Create one or many new recipe rows for a product. The endpoint accepts up to 150 recipe rows and processes them in bulk. This endpoint is deprecated in favor of BOM rows.
Parameters:
-
body(CreateRecipesRequest) –Request payload for creating recipe rows (deprecated in favor of BOM rows) Example: {'keep_current_rows': True, 'rows': [{'ingredient_variant_id': 1001, 'product_variant_id': 2001, 'quantity': 2.5, 'notes': 'Primary ingredient'}]}.
Raises:
-
UnexpectedStatus–If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
-
TimeoutException–If the request takes longer than Client.timeout.
Returns:
-
Any | DetailedErrorResponse | ErrorResponse | None–Union[Any, DetailedErrorResponse, ErrorResponse]
Source code in katana_public_api_client/api/recipe/create_recipes.py
asyncio_detailed(*, client, body)
async
¶
Create recipes
Create one or many new recipe rows for a product. The endpoint accepts up to 150 recipe rows and processes them in bulk. This endpoint is deprecated in favor of BOM rows.
Parameters:
-
body(CreateRecipesRequest) –Request payload for creating recipe rows (deprecated in favor of BOM rows) Example: {'keep_current_rows': True, 'rows': [{'ingredient_variant_id': 1001, 'product_variant_id': 2001, 'quantity': 2.5, 'notes': 'Primary ingredient'}]}.
Raises:
-
UnexpectedStatus–If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
-
TimeoutException–If the request takes longer than Client.timeout.
Returns:
-
Response[Any | DetailedErrorResponse | ErrorResponse]–Response[Union[Any, DetailedErrorResponse, ErrorResponse]]
Source code in katana_public_api_client/api/recipe/create_recipes.py
sync(*, client, body)
¶
Create recipes
Create one or many new recipe rows for a product. The endpoint accepts up to 150 recipe rows and processes them in bulk. This endpoint is deprecated in favor of BOM rows.
Parameters:
-
body(CreateRecipesRequest) –Request payload for creating recipe rows (deprecated in favor of BOM rows) Example: {'keep_current_rows': True, 'rows': [{'ingredient_variant_id': 1001, 'product_variant_id': 2001, 'quantity': 2.5, 'notes': 'Primary ingredient'}]}.
Raises:
-
UnexpectedStatus–If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
-
TimeoutException–If the request takes longer than Client.timeout.
Returns:
-
Any | DetailedErrorResponse | ErrorResponse | None–Union[Any, DetailedErrorResponse, ErrorResponse]
Source code in katana_public_api_client/api/recipe/create_recipes.py
sync_detailed(*, client, body)
¶
Create recipes
Create one or many new recipe rows for a product. The endpoint accepts up to 150 recipe rows and processes them in bulk. This endpoint is deprecated in favor of BOM rows.
Parameters:
-
body(CreateRecipesRequest) –Request payload for creating recipe rows (deprecated in favor of BOM rows) Example: {'keep_current_rows': True, 'rows': [{'ingredient_variant_id': 1001, 'product_variant_id': 2001, 'quantity': 2.5, 'notes': 'Primary ingredient'}]}.
Raises:
-
UnexpectedStatus–If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
-
TimeoutException–If the request takes longer than Client.timeout.
Returns:
-
Response[Any | DetailedErrorResponse | ErrorResponse]–Response[Union[Any, DetailedErrorResponse, ErrorResponse]]