- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
upsertProductCategories - Product Module Reference
This documentation provides a reference to the upsertProductCategories
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.
upsertProductCategories(data, sharedContext?): Promise<ProductCategoryDTO[]>#
This method updates existing categories, or creates new ones if they don't exist.
Example#
Parameters#
data
UpsertProductCategoryDTO[]The attributes to update or create for each category.
data
UpsertProductCategoryDTO[]Returns#
Promise
Promise<ProductCategoryDTO[]>The updated and created categories.
Promise
Promise<ProductCategoryDTO[]>upsertProductCategories(data, sharedContext?): Promise<ProductCategoryDTO>#
This method updates an existing category, or creates a new one if it doesn't exist.
Example#
Parameters#
The attributes to update or create for the category.
Returns#
Promise
Promise<ProductCategoryDTO>The updated or created category.
Promise
Promise<ProductCategoryDTO>Was this page helpful?