Creates a new recommendation configuration.
Request
POST /reco
Headers
| Header | Value |
|---|---|
Authorization | Bearer <token> |
Content-Type | application/json |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Display name for the recommendation. |
active | boolean | No | Whether the recommendation is active. Defaults to false. |
recommendationType | string | No | Algorithm type. One of: textSimilarity, boughtTogether, cartBased, userBased, pictureSimilarity, none. Defaults to textSimilarity. |
case | string | No | Preset case identifier. When provided, the configuration is pre-populated from the preset. |
Example Request
{
"name": "Similar Products",
"active": true,
"recommendationType": "textSimilarity"
}Response
Returns the created recommendation configuration object.
Example Response
{
"id": 2,
"name": "Similar Products",
"active": true,
"recommendationType": "textSimilarity",
"user": "[email protected]"
}
