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