- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
attachInventoryItemToVariants - Medusa Core Workflows Reference
This documentation provides a reference to the attachInventoryItemToVariants
. It belongs to the @medusajs/medusa/core-flows
package.
This step creates one or more links between variant and inventory item records.
Example#
Input#
AttachInventoryItemToVariantsStepInput
AttachInventoryItemToVariantsStepInputThe data to attach inventory items to variants.
AttachInventoryItemToVariantsStepInput
AttachInventoryItemToVariantsStepInputinventoryItemId
stringThe inventory item ID to attach to the variant.
inventoryItemId
stringtag
stringThe variant ID to attach the inventory item to.
tag
stringOutput#
unknown[]
unknown[]
unknown[]
unknown[]unknown
unknown
unknown
unknownWas this page helpful?