updateProductCategoriesStep - Medusa Core Workflows Reference
This documentation provides a reference to the updateProductCategoriesStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step updates product categories matching specified filters.
Example#
Input#
UpdateProductCategoriesStepInput
UpdateProductCategoriesStepInputThe data to update the product categories.
UpdateProductCategoriesStepInput
UpdateProductCategoriesStepInputselector
FilterableProductCategoryPropsThe filters to select the product categories to update.
selector
FilterableProductCategoryPropsupdate
UpdateProductCategoryDTOThe data to update in the product categories.
update
UpdateProductCategoryDTOOutput#
ProductCategoryDTO[]
ProductCategoryDTO[]
ProductCategoryDTO[]
ProductCategoryDTO[]id
stringThe ID of the product category.
id
stringname
stringThe name of the product category.
name
stringdescription
stringThe description of the product category.
description
stringhandle
stringThe handle of the product category. The handle can be used to create slug URL paths.
handle
stringis_active
booleanWhether the product category is active.
is_active
booleanis_internal
booleanWhether the product category is internal. This can be used to only show the product category to admins and hide it from customers.
is_internal
booleanrank
numberThe ranking of the product category among sibling categories.
rank
numberThe associated parent category.
parent_category_id
null | stringThe associated parent category id.
parent_category_id
null | stringThe associated child categories.
The associated products.
created_at
string | DateWhen the product category was created.
created_at
string | Dateupdated_at
string | DateWhen the product category was updated.
updated_at
string | DateThe ranking of the product category among sibling categories.
deleted_at
string | DateOptionalWhen the product category was deleted.
deleted_at
string | DateOptionalWas this page helpful?