---
title: "Updates a frequently bought together recommendation"
method: PUT
path: "/recommendation/frequentlybought"
tags: ["Recommendation"]
---

# Updates a frequently bought together recommendation

`PUT /recommendation/frequentlybought`

## Request

- The document declares no server URL.
- Auth: API key in header `TWN-InstanceKey` and API key in header `TWN-Authentication`

## Request body

- FrequentlyBoughtTogetherRecommendationSubmitApiModel: Submit model for a frequently bought together recommendation.
  - `RecommendationId` integer, nullable: Recommendation identifier. Required for update, ignored for create.
  - `Name` string: Name of the recommendation.
  - `AmountOfResults` integer: Number of products to return.
  - `SourceCategoryId` integer, nullable: Source category identifier. Optional.
  - `ResultCategoryId` integer, nullable: Result category identifier. Optional.
  - `RecommendationRefinedSelection` 'None' | 'Category' | 'Attribute': Type of refined selection for featured and product recommendations.
  - `RefinedSelectionAttributeId` integer, nullable: Attribute identifier for refined selection when RefinedSelection is Attribute.
  - `SourceFilters` ProductRecommendationSourceFilterApiModel[]: Source filters for this recommendation.
    - `AttributeId` integer: Attribute identifier for this filter.
    - `Type` 'MultiValue' | 'Range': Type of filter for featured recommendation filters.
    - `Operator` 'Equals' | 'NotEquals': Operator for product recommendation source filters.
    - `Values` string[], nullable: Values for MultiValue filter type. Null for Range type.
    - `Min` integer, nullable: Minimum value for Range filter type. Null for MultiValue type.
    - `Max` integer, nullable: Maximum value for Range filter type. Null for MultiValue type.
  - `Filters` ProductRecommendationResultFilterApiModel[]: List of result filters for this recommendation.
    - `AttributeId` integer: Attribute identifier for this filter.
    - `Operator` 'EqualsSource' | 'GreaterOrEqualSource' | 'LessThanSourceOrEqual' | 'OneOf' | 'Range' | 'NotEqualsSource' | 'RangePercentage' | 'NoneOf' | 'EqualsSourceAttribute': Operator for product recommendation result filters.
    - `Values` string[], nullable: Values for 'Equals' and 'NotEquals' operators only. Null otherwise.
    - `Min` integer, nullable: Minimum value for 'Range' and 'RangePercentage' operators only. Null otherwise.
    - `Max` integer, nullable: Maximum value for 'Range' and 'RangePercentage' operators only. Null otherwise.
    - `SourceAttributeId` integer, nullable: Source attribute identifier for 'EqualsSourceAttribute' operator only. Null otherwise.
  - `GroupKeys` string[]: List of group keys. Non-nullable.
  - `Priority` integer, nullable: Priority. Optional.

## Response `200`

OK

- integer

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/tweakwise/apis/app-api.md) - [All operations](https://skmtc.dev/tweakwise/apis/app-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tweakwise/apis/app-api/revisions/dc936bf76941?raw)
