post https://api.apicbase.com/api/v2/production_plan
Creates a new instance of a production plan.
Understanding the item_class
field
item_class
fieldEach production plan task involves one item, which can be either a recipe or a custom task:
- If the item is a recipe, the
item_class
will berecipe
and theitem_id
will be the ID of a recipe. This applies to tasks specific to a recipe. - If the item is a custom task, the
item_class
will becustom
, and theitem_id
will be the ID of a custom task. This is used for more general tasks and is not tied to any specific recipe.
The origin
field inside a sub-task shows where the sub-task comes from. It can refer to:
- a recipe (
item_class
will berecipe
and theitem_id
will be the ID of a recipe) - a custom task (
item_class
will becustom
and theitem_id
will be the ID of a custom task) - a menu (
item_class
will bemenu
and theitem_id
will be the ID of a menu) - an incoming order (
item_class
will beincoming_order
and theitem_id
will be the ID of an incoming order) - an incoming order package (
item_class
will beincoming_order_package
and theitem_id
will be the ID of an incoming order package)
In short, the item_class
field helps identify what the task relates to and where its sub-tasks belong.