Updates an existing recommendation configuration by its ID.
Request
PUT /reco/{id}
Headers
| Header | Value |
|---|---|
Authorization | Bearer <token> |
Content-Type | application/json |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | ID of the recommendation configuration to update. |
Request Body
Provide the fields to update. All fields are optional.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | Display name for the recommendation. |
active | boolean | No | Whether the recommendation is active. |
recommendationType | string | No | Algorithm type. One of: textSimilarity, boughtTogether, cartBased, userBased, pictureSimilarity, none. |
Example Request
{
"name": "Similar Products (Updated)",
"active": false
}Response
Returns the updated recommendation configuration object.
Example Response
{
"id": 1,
"name": "Similar Products (Updated)",
"active": false,
"recommendationType": "textSimilarity",
"user": "[email protected]"
}
