- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
updateProducts - Product Module Reference
This documentation provides a reference to the updateProducts
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.
updateProducts(id, data, sharedContext?): Promise<ProductDTO>#
This method is used to update a product.
Example#
Parameters#
id
stringThe ID of the product to be updated.
data
UpdateProductDTOThe attributes of the product to be updated
data
UpdateProductDTOReturns#
Promise
Promise<ProductDTO>The updated product.
Promise
Promise<ProductDTO>updateProducts(selector, data, sharedContext?): Promise<ProductDTO[]>#
This method is used to update a list of products matching the specified filters.
Example#
Parameters#
selector
FilterableProductPropsThe filters specifying which products to update.
selector
FilterableProductPropsdata
UpdateProductDTOThe attributes to be updated on the selected products
data
UpdateProductDTOReturns#
Promise
Promise<ProductDTO[]>The updated products.
Promise
Promise<ProductDTO[]>Was this page helpful?