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. In this case, thequantity_to_produce
field is required. - 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. In this case, thequantity_to_produce
field is not required.
In short, the item_class
field helps identify what the task relates to.