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