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