- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
batchProductsWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the batchProductsWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow creates, updates, or deletes products. It's used by the Manage Products Admin API Route.
You can use this workflow within your own customizations or custom workflows to manage products in bulk. This is also useful when writing a seed script or a custom import script.
Source CodeExamples#
Steps#
Workflow Hook
Step conditioned by when
Input#
BatchProductWorkflowInput
BatchProductWorkflowInputThe products to manage.
BatchProductWorkflowInput
BatchProductWorkflowInputRecords to create in bulk.
Records to update in bulk.
delete
string[]OptionalRecords to delete in bulk.
delete
string[]OptionalOutput#
BatchWorkflowOutput
BatchWorkflowOutput<ProductDTO>
BatchWorkflowOutput
BatchWorkflowOutput<ProductDTO>ProductDTO
ProductDTOA product's data.
ProductDTO
ProductDTOWas this page helpful?