Skip to main content
Skip to main content

createCategory - Product Module Reference

This documentation provides a reference to the createCategory method. This belongs to the Product Module.

This method is used to create a product category.

Example

const category = await productModuleService.createCategory({
name: "Shirts",
parent_category_id: null,
})

Parameters

The product category to be created.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<ProductCategoryDTO>Required
The created product category.
Was this section helpful?