Selection
API calls
Endpoint: /product-selection
Endpoint | Method | Payload |
---|---|---|
/product-selection | POST |
selection payload |
/product-selection/:selection |
DELETE |
|
/product-selection/:selection /filters |
POST |
filter payload |
/product-selection-filter/:filter |
DELETE |
|
/product-selection/:selection /publish |
POST |
Selection payload
{
category_id*: (categories/id)**,
productattributeset_id: if present|(productattributeset/id)**,
}
*required
** must exist in table/column
Filter payload
{
productproperty_id^: (productpropert/id)**,
productattribute_name^: string(min:1),
values*: [(min:1){
values.*: string,
expression: string| from a selection,
operator: string| from a selection,
}]
}
*required
^required, if the other one is empty
** must exist in table/column