/v1/data/products/sort
POST /v1/data/products/sort
Summary
This is an API to sort products based on feature engineering and AI.
Request Headers
Header | Value |
---|---|
Authorization | Bearer API_TOKEN |
Request Body
Example 1:
{ "data": {"product_ids":[ "12345", "12345"]} }
Example 2:
{ "data": {"category_id": "12345"} }
Responses
401
: Unauthorized Response
200
: Successful Response
The successful response returns JSON with the following structure:
{
"data": {
"sorted_products": [
"12345",
"12345",
"12345",
"12345",
"12345"
]
},
"total_records": 5,
"message": "Products sort",
"status": "OK"
}