createProductCategoriesStep - Medusa Core Workflows Reference
This documentation provides a reference to the createProductCategoriesStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step creates one or more product categories.
Example#
Input#
CreateProductCategoriesStepInput
CreateProductCategoriesStepInputThe data to create product categories.
CreateProductCategoriesStepInput
CreateProductCategoriesStepInputproduct_categories
CreateProductCategoryDTO[]The product categories to create.
product_categories
CreateProductCategoryDTO[]Output#
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?