- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
updateProductCategories - Product Module Reference
This documentation provides a reference to the updateProductCategories
method. This belongs to the Product Module.
Note: You should only use this methods when implementing complex customizations. For common cases, check out available workflows instead.
updateProductCategories(id, data, sharedContext?): Promise<ProductCategoryDTO>#
This method is used to update a category.
Example#
Parameters#
id
stringThe ID of the category to be updated.
The attributes of the category to be updated
Returns#
Promise
Promise<ProductCategoryDTO>The updated category.
Promise
Promise<ProductCategoryDTO>updateProductCategories(selector, data, sharedContext?): Promise<ProductCategoryDTO[]>#
This method is used to update a list of categories matching the specified filters.
Example#
Parameters#
selector
FilterableProductCategoryPropsThe filters specifying which categories to update.
selector
FilterableProductCategoryPropsThe attributes to be updated on the selected categories
Returns#
Promise
Promise<ProductCategoryDTO[]>The updated categories.
Promise
Promise<ProductCategoryDTO[]>Was this page helpful?