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