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