Operation Id:
products/groups/order/put [Official Documentaction]
Methods
- groups Array<Object>
- productsInOrder Array<Object>
- productIdsInOrder productIds: number|string|number[]|string[]
Examples
This function sorts a list of products by their priority value.
Loading editor...
const result = await idosellRequest.putProductsGroupsOrder .productsInOrder([{ "productIdent":{"productIdentType":"id", "identValue":"33"},"priority":1},{"productIdent":{"productIdentType":"id", "identValue":"44"},"priority":2},{"productIdent":{"productIdentType":"id", "identValue":"48"},"priority":3 }]) .exec();
Defines order of products within group by automatically setting proprities in order of appearance (in this example, ID 44 is first, while ID 33 is second).
Loading editor...
const result = await idosellRequest.putProductsGroupsOrder .productIdsInOrder([44,33]) .exec();