- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
updateInventoryItemsWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the updateInventoryItemsWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow updates one or more inventory items. It's used by the Update an Inventory Item Admin API Route.
You can use this workflow within your own customizations or custom workflows, allowing you to update inventory items in your custom flows.
Source CodeExamples#
Steps#
Workflow Hook
Step conditioned by when
Input#
UpdateInventoryItemsWorkflowInput
UpdateInventoryItemsWorkflowInputThe data to update the inventory items.
UpdateInventoryItemsWorkflowInput
UpdateInventoryItemsWorkflowInputupdates
UpdateInventoryItemInput[]The items to update.
updates
UpdateInventoryItemInput[]Output#
UpdateInventoryItemsWorkflowOutput
UpdateInventoryItemsWorkflowOutputThe updated inventory items.
UpdateInventoryItemsWorkflowOutput
UpdateInventoryItemsWorkflowOutputid
stringThe ID of the inventory item.
id
stringrequires_shipping
booleanWhether the inventory item requires shipping.
requires_shipping
booleancreated_at
string | DateThe creation date of the inventory item.
created_at
string | Dateupdated_at
string | DateThe update date of the inventory item.
updated_at
string | Datedeleted_at
null | string | DateThe deletion date of the inventory item.
deleted_at
null | string | Datesku
null | stringOptionalThe SKU of the inventory item.
sku
null | stringOptionalorigin_country
null | stringOptionalThe origin country of the inventory item.
origin_country
null | stringOptionalhs_code
null | stringOptionalThe HS code of the inventory item.
hs_code
null | stringOptionalmid_code
null | stringOptionalThe mid code of the inventory item.
mid_code
null | stringOptionalmaterial
null | stringOptionalThe material of the inventory item.
material
null | stringOptionalweight
null | numberOptionalThe weight of the inventory item.
weight
null | numberOptionallength
null | numberOptionalThe length of the inventory item.
length
null | numberOptionalheight
null | numberOptionalThe height of the inventory item.
height
null | numberOptionalwidth
null | numberOptionalThe width of the inventory item.
width
null | numberOptionaltitle
null | stringOptionalThe title of the inventory item.
title
null | stringOptionaldescription
null | stringOptionalThe description of the inventory item.
description
null | stringOptionalthumbnail
null | stringOptionalThe thumbnail of the inventory item.
thumbnail
null | stringOptionalmetadata
null | Record<string, unknown>OptionalHolds custom data in key-value pairs.
metadata
null | Record<string, unknown>OptionalWas this page helpful?