CreateProductCategoryDTO

A product category to create.

namestring
The product category's name.
descriptionstringOptional
The product category's description.
handlestringOptional
The product category's handle.
is_activebooleanOptional
Whether the product category is active.
is_internalbooleanOptional
Whether the product category is internal. This can be used to only show the product category to admins and hide it from customers.
ranknumberOptional
The ranking of the category among sibling categories.
parent_category_idnull | stringOptional
The ID of the parent product category, if it has any.
metadataMetadataTypeOptional
Holds custom data in key-value pairs.
Was this page helpful?
Edit this page
Ask Anything
FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break