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