- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
batchLinkProductsToCategoryWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the batchLinkProductsToCategoryWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow manages the links between a category and products. It's used by the Manage Products of Category Admin API Route.
You can use this workflow within your own customizations or custom workflows to manage the products in a category.
Source CodeExamples#
Steps#
Workflow Hook
Step conditioned by when
Input#
BatchUpdateProductsOnCategoryWorkflowInput
BatchUpdateProductsOnCategoryWorkflowInput
BatchUpdateProductsOnCategoryWorkflowInput
BatchUpdateProductsOnCategoryWorkflowInputid
stringThe ID of the data model to create links to or remove links from.
id
stringadd
string[]OptionalThe IDs of the other data models to create links to the record specified in id
.
add
string[]Optionalid
.remove
string[]OptionalThe IDs of the other data models to remove links from the record specified in id
.
remove
string[]Optionalid
.Was this page helpful?