> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# UpdateRecommendationSettings

# Package: recommendations

# Namespace: RecommendationSettingsService

# Method link: https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendation-settings/update-recommendation-settings.md

## Permission Scopes:
Manage Restaurants - all permissions: SCOPE.RESTAURANTS.MEGA-SCOPES

## Introduction

Updates the recommendation settings of an operation.

Each time the recommendation settings are updated, `revision` increments by 1. The current `revision` must be passed
when updating the recommendation settings. This ensures you're working with the latest recommendation settings and
prevents unintended overwrites.

Only the fields specified in `recommendationSettings` are updated. A strategy is always replaced as a whole: when
you update a `strategy`, specify its `type`, and also `featuredOptions.featuredInfos` when the type is `FEATURED`.

To update the recommendation settings of multiple operations in a single API call, call
[Bulk Update Recommendation Settings](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendation-settings/bulk-update-recommendation-settings.md).

---

## REST API

### Schema

```
 Method: updateRecommendationSettings
 Description: Updates the recommendation settings of an operation.  Each time the recommendation settings are updated, `revision` increments by 1. The current `revision` must be passed when updating the recommendation settings. This ensures you're working with the latest recommendation settings and prevents unintended overwrites.  Only the fields specified in `recommendationSettings` are updated. A strategy is always replaced as a whole: when you update a `strategy`, specify its `type`, and also `featuredOptions.featuredInfos` when the type is `FEATURED`.  To update the recommendation settings of multiple operations in a single API call, call [Bulk Update Recommendation Settings](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendation-settings/bulk-update-recommendation-settings.md).
 URL: https://www.wixapis.com/restaurants/ordering-recommendations/v1/recommendation-settings/{recommendationSettings.id}
 Method: PATCH
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  recommendationSettings, recommendationSettings.id, recommendationSettings.revision, recommendationSettings.itemDetails.strategy.type, recommendationSettings.itemDetails.strategy.featuredOptions.featuredInfos, recommendationSettings.purchaseFlow.strategy.type, recommendationSettings.purchaseFlow.strategy.featuredOptions.featuredInfos
 Method parameters: 
   param name: recommendationSettings | type: RecommendationSettings | description: Recommendation settings define whether menu item recommendations are enabled for a restaurant operation, and how the recommended items are selected. There are separate settings for recommendations in an item's details and in the purchase flow.  Each operation has exactly 1 recommendation settings object, with the same GUID as the operation. The settings are created automatically when the operation is created, and deleted when the operation is deleted. You can't create or delete recommendation settings yourself.  New recommendation settings have `itemDetails.enabled` and `purchaseFlow.enabled` set to `false`, and both strategies set to `FREQUENTLY_ORDERED_TOGETHER`. | required: true 
        - name: id | type: string | description: Recommendation settings GUID. Same as the operation GUID. | required: true | read-only: true | validation: format GUID
        - name: revision | type: string | description: Revision number, which increments by 1 each time the recommendation settings are updated. To prevent conflicting changes, the current revision must be passed when updating the recommendation settings. | required: true | read-only: true | validation: format int64
        - name: itemDetails | type: ItemDetailsRecommendationSettings | description: Settings for recommendations shown in a menu item's details, such as in the item modal of an ordering page.  
           - name: strategy | type: RecommendationStrategy | description: How recommended items are selected. To retrieve the recommended items, specify this strategy as is when calling [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations.md).  Default: `type` is `FREQUENTLY_ORDERED_TOGETHER`  
              - ONE-OF: 
                 - name: featuredOptions | type: FeaturedOptions | description: Options for the `FEATURED` strategy.  Required when `type` is `FEATURED`.  
                    - name: featuredInfos | type: array<FeaturedInfo> | description: Featured types to match. A menu item is recommended when it has any of these featured types. | required: true | validation: minItems 1, maxItems 7
                       - name: type | type: FeaturedType | description: Featured type.  
                                 - enum:
                                 -     POPULAR: Popular item.
                                 -     BEST_SELLER: Best seller.
                                 -     NEW: New item.
                                 -     CHEF_SPECIAL: Chef's special.
                                 -     RECOMMENDED: Recommended item.
                                 -     SEASONAL: Seasonal item.
                                 -     FEATURED: General featured label set on the menu item. Not the same as the `FEATURED` strategy type, which recommends items that have any of the specified featured types.
              - name: type | type: RecommendationStrategyType | description: Strategy type. | required: true 
                     - enum:
                     -     FREQUENTLY_ORDERED_TOGETHER: Items that customers often order together with the items specified in `items` when calling [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations.md).
                     -     BEST_SELLERS: Items ordered most often from the operation, based on its order history. Not related to the `BEST_SELLER` featured type.
                     -     FEATURED: Items that have any of the featured types specified in `featuredOptions.featuredInfos`.
           - name: enabled | type: boolean | description: Whether recommendations are enabled in item details.  This is a stored preference. The client that displays recommendations is responsible for checking it, as Wix's online ordering pages do. [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations.md) returns recommendations regardless of this value.  Default: `false`  
        - name: purchaseFlow | type: PurchaseFlowRecommendationSettings | description: Settings for recommendations shown during the purchase flow, such as in the cart and at checkout.  
           - name: strategy | type: RecommendationStrategy | description: How recommended items are selected. To retrieve the recommended items, specify this strategy as is when calling [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations.md).  Default: `type` is `FREQUENTLY_ORDERED_TOGETHER`  
           - name: enabled | type: boolean | description: Whether recommendations are enabled in the purchase flow.  This is a stored preference. The client that displays recommendations is responsible for checking it, as Wix's online ordering pages do. [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations.md) returns recommendations regardless of this value.  Default: `false`  
 Return type: UpdateRecommendationSettingsResponse
  - name: recommendationSettings | type: RecommendationSettings | description: Updated recommendation settings.  
     - name: id | type: string | description: Recommendation settings GUID. Same as the operation GUID.  | read-only: true | validation: format GUID
     - name: revision | type: string | description: Revision number, which increments by 1 each time the recommendation settings are updated. To prevent conflicting changes, the current revision must be passed when updating the recommendation settings.  | read-only: true | validation: format int64
     - name: createdDate | type: string | description: Date and time the recommendation settings were created.  | read-only: true | validation: format date-time
     - name: updatedDate | type: string | description: Date and time the recommendation settings were updated.  | read-only: true | validation: format date-time
     - name: itemDetails | type: ItemDetailsRecommendationSettings | description: Settings for recommendations shown in a menu item's details, such as in the item modal of an ordering page.  
        - name: strategy | type: RecommendationStrategy | description: How recommended items are selected. To retrieve the recommended items, specify this strategy as is when calling [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations.md).  Default: `type` is `FREQUENTLY_ORDERED_TOGETHER`  
           - ONE-OF: 
              - name: featuredOptions | type: FeaturedOptions | description: Options for the `FEATURED` strategy.  Required when `type` is `FEATURED`.  
                 - name: featuredInfos | type: array<FeaturedInfo> | description: Featured types to match. A menu item is recommended when it has any of these featured types.  | validation: minItems 1, maxItems 7
                    - name: type | type: FeaturedType | description: Featured type.  
                             - enum:
                             -     POPULAR: Popular item.
                             -     BEST_SELLER: Best seller.
                             -     NEW: New item.
                             -     CHEF_SPECIAL: Chef's special.
                             -     RECOMMENDED: Recommended item.
                             -     SEASONAL: Seasonal item.
                             -     FEATURED: General featured label set on the menu item. Not the same as the `FEATURED` strategy type, which recommends items that have any of the specified featured types.
           - name: type | type: RecommendationStrategyType | description: Strategy type.  
                 - enum:
                 -     FREQUENTLY_ORDERED_TOGETHER: Items that customers often order together with the items specified in `items` when calling [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations.md).
                 -     BEST_SELLERS: Items ordered most often from the operation, based on its order history. Not related to the `BEST_SELLER` featured type.
                 -     FEATURED: Items that have any of the featured types specified in `featuredOptions.featuredInfos`.
        - name: enabled | type: boolean | description: Whether recommendations are enabled in item details.  This is a stored preference. The client that displays recommendations is responsible for checking it, as Wix's online ordering pages do. [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations.md) returns recommendations regardless of this value.  Default: `false`  
     - name: purchaseFlow | type: PurchaseFlowRecommendationSettings | description: Settings for recommendations shown during the purchase flow, such as in the cart and at checkout.  
        - name: strategy | type: RecommendationStrategy | description: How recommended items are selected. To retrieve the recommended items, specify this strategy as is when calling [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations.md).  Default: `type` is `FREQUENTLY_ORDERED_TOGETHER`  
        - name: enabled | type: boolean | description: Whether recommendations are enabled in the purchase flow.  This is a stored preference. The client that displays recommendations is responsible for checking it, as Wix's online ordering pages do. [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations.md) returns recommendations regardless of this value.  Default: `false`  
     - name: businessLocationId | type: string | description: GUID of the operation's business location. Copied from the operation when the recommendation settings are created.  Not returned for an operation without a business location.  | read-only: true | validation: format GUID, immutable


```

### Examples

### Turn on purchase flow recommendations with the featured strategy
Enables recommendations in the purchase flow and recommends menu items that are featured as popular or new.

```curl
curl -X PATCH \
'https://www.wixapis.com/restaurants/ordering-recommendations/v1/recommendation-settings/002d8cb3-99a2-4c5e-b6b2-94db12675bcd' \
-H 'Authorization: <AUTH>' \
-H 'Content-Type: application/json' \
-d '{
  "recommendationSettings": {
    "id": "002d8cb3-99a2-4c5e-b6b2-94db12675bcd",
    "revision": "1",
    "purchaseFlow": {
      "enabled": true,
      "strategy": {
        "type": "FEATURED",
        "featuredOptions": {
          "featuredInfos": [
            {
              "type": "POPULAR"
            },
            {
              "type": "NEW"
            }
          ]
        }
      }
    }
  }
}'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.restaurants.recommendationSettings.updateRecommendationSettings(_id, recommendationSettings)
 Description: Updates the recommendation settings of an operation.  Each time the recommendation settings are updated, `revision` increments by 1. The current `revision` must be passed when updating the recommendation settings. This ensures you're working with the latest recommendation settings and prevents unintended overwrites.  Only the fields specified in `recommendationSettings` are updated. A strategy is always replaced as a whole: when you update a `strategy`, specify its `type`, and also `featuredOptions.featuredInfos` when the type is `FEATURED`.  To update the recommendation settings of multiple operations in a single API call, call [Bulk Update Recommendation Settings](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendation-settings/bulk-update-recommendation-settings.md).
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  recommendationSettings, _id, recommendationSettings.revision, recommendationSettings.itemDetails.strategy.type, recommendationSettings.itemDetails.strategy.featuredOptions.featuredInfos, recommendationSettings.purchaseFlow.strategy.type, recommendationSettings.purchaseFlow.strategy.featuredOptions.featuredInfos
 Method parameters: 
   param name: _id | type: string | description: Recommendation settings GUID. Same as the operation GUID. | required: true | validation: format GUID
   param name: recommendationSettings | type: UpdateRecommendationSettings | description: Recommendation settings define whether menu item recommendations are enabled for a restaurant operation, and how the recommended items are selected. There are separate settings for recommendations in an item's details and in the purchase flow.  Each operation has exactly 1 recommendation settings object, with the same GUID as the operation. The settings are created automatically when the operation is created, and deleted when the operation is deleted. You can't create or delete recommendation settings yourself.  New recommendation settings have `itemDetails.enabled` and `purchaseFlow.enabled` set to `false`, and both strategies set to `FREQUENTLY_ORDERED_TOGETHER`. | required: true 
        - name: revision | type: string | description: Revision number, which increments by 1 each time the recommendation settings are updated. To prevent conflicting changes, the current revision must be passed when updating the recommendation settings. | required: true | read-only: true | validation: format int64
        - name: itemDetails | type: ItemDetailsRecommendationSettings | description: Settings for recommendations shown in a menu item's details, such as in the item modal of an ordering page.  
           - name: strategy | type: RecommendationStrategy | description: How recommended items are selected. To retrieve the recommended items, specify this strategy as is when calling [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations.md).  Default: `type` is `FREQUENTLY_ORDERED_TOGETHER`  
              - ONE-OF: 
                 - name: featuredOptions | type: FeaturedOptions | description: Options for the `FEATURED` strategy.  Required when `type` is `FEATURED`.  
                    - name: featuredInfos | type: array<FeaturedInfo> | description: Featured types to match. A menu item is recommended when it has any of these featured types. | required: true | validation: minItems 1, maxItems 7
                       - name: type | type: FeaturedType | description: Featured type.  
                                 - enum:
                                 -     POPULAR: Popular item.
                                 -     BEST_SELLER: Best seller.
                                 -     NEW: New item.
                                 -     CHEF_SPECIAL: Chef's special.
                                 -     RECOMMENDED: Recommended item.
                                 -     SEASONAL: Seasonal item.
                                 -     FEATURED: General featured label set on the menu item. Not the same as the `FEATURED` strategy type, which recommends items that have any of the specified featured types.
              - name: type | type: RecommendationStrategyType | description: Strategy type. | required: true 
                     - enum:
                     -     FREQUENTLY_ORDERED_TOGETHER: Items that customers often order together with the items specified in `items` when calling [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations.md).
                     -     BEST_SELLERS: Items ordered most often from the operation, based on its order history. Not related to the `BEST_SELLER` featured type.
                     -     FEATURED: Items that have any of the featured types specified in `featuredOptions.featuredInfos`.
           - name: enabled | type: boolean | description: Whether recommendations are enabled in item details.  This is a stored preference. The client that displays recommendations is responsible for checking it, as Wix's online ordering pages do. [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations.md) returns recommendations regardless of this value.  Default: `false`  
        - name: purchaseFlow | type: PurchaseFlowRecommendationSettings | description: Settings for recommendations shown during the purchase flow, such as in the cart and at checkout.  
           - name: strategy | type: RecommendationStrategy | description: How recommended items are selected. To retrieve the recommended items, specify this strategy as is when calling [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations.md).  Default: `type` is `FREQUENTLY_ORDERED_TOGETHER`  
           - name: enabled | type: boolean | description: Whether recommendations are enabled in the purchase flow.  This is a stored preference. The client that displays recommendations is responsible for checking it, as Wix's online ordering pages do. [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations.md) returns recommendations regardless of this value.  Default: `false`  
 Return type: PROMISE<RecommendationSettings>
  - name: _id | type: string | description: Recommendation settings GUID. Same as the operation GUID.  | read-only: true | validation: format GUID
  - name: revision | type: string | description: Revision number, which increments by 1 each time the recommendation settings are updated. To prevent conflicting changes, the current revision must be passed when updating the recommendation settings.  | read-only: true | validation: format int64
  - name: _createdDate | type: Date | description: Date and time the recommendation settings were created.  | read-only: true 
  - name: _updatedDate | type: Date | description: Date and time the recommendation settings were updated.  | read-only: true 
  - name: itemDetails | type: ItemDetailsRecommendationSettings | description: Settings for recommendations shown in a menu item's details, such as in the item modal of an ordering page.  
     - name: strategy | type: RecommendationStrategy | description: How recommended items are selected. To retrieve the recommended items, specify this strategy as is when calling [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations.md).  Default: `type` is `FREQUENTLY_ORDERED_TOGETHER`  
        - ONE-OF: 
           - name: featuredOptions | type: FeaturedOptions | description: Options for the `FEATURED` strategy.  Required when `type` is `FEATURED`.  
              - name: featuredInfos | type: array<FeaturedInfo> | description: Featured types to match. A menu item is recommended when it has any of these featured types.  | validation: minItems 1, maxItems 7
                 - name: type | type: FeaturedType | description: Featured type.  
                         - enum:
                         -     POPULAR: Popular item.
                         -     BEST_SELLER: Best seller.
                         -     NEW: New item.
                         -     CHEF_SPECIAL: Chef's special.
                         -     RECOMMENDED: Recommended item.
                         -     SEASONAL: Seasonal item.
                         -     FEATURED: General featured label set on the menu item. Not the same as the `FEATURED` strategy type, which recommends items that have any of the specified featured types.
        - name: type | type: RecommendationStrategyType | description: Strategy type.  
             - enum:
             -     FREQUENTLY_ORDERED_TOGETHER: Items that customers often order together with the items specified in `items` when calling [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations.md).
             -     BEST_SELLERS: Items ordered most often from the operation, based on its order history. Not related to the `BEST_SELLER` featured type.
             -     FEATURED: Items that have any of the featured types specified in `featuredOptions.featuredInfos`.
     - name: enabled | type: boolean | description: Whether recommendations are enabled in item details.  This is a stored preference. The client that displays recommendations is responsible for checking it, as Wix's online ordering pages do. [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations.md) returns recommendations regardless of this value.  Default: `false`  
  - name: purchaseFlow | type: PurchaseFlowRecommendationSettings | description: Settings for recommendations shown during the purchase flow, such as in the cart and at checkout.  
     - name: strategy | type: RecommendationStrategy | description: How recommended items are selected. To retrieve the recommended items, specify this strategy as is when calling [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations.md).  Default: `type` is `FREQUENTLY_ORDERED_TOGETHER`  
     - name: enabled | type: boolean | description: Whether recommendations are enabled in the purchase flow.  This is a stored preference. The client that displays recommendations is responsible for checking it, as Wix's online ordering pages do. [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations.md) returns recommendations regardless of this value.  Default: `false`  
  - name: businessLocationId | type: string | description: GUID of the operation's business location. Copied from the operation when the recommendation settings are created.  Not returned for an operation without a business location.  | read-only: true | validation: format GUID, immutable


```

### Examples

### Turn on purchase flow recommendations with the featured strategy
Enables recommendations in the purchase flow and recommends menu items that are featured as popular or new.

```javascript
import { recommendationSettings } from "@wix/restaurants";

async function updateRecommendationSettings() {
  const response = await recommendationSettings.updateRecommendationSettings(
    "002d8cb3-99a2-4c5e-b6b2-94db12675bcd",
    {
      revision: "1",
      purchaseFlow: {
        enabled: true,
        strategy: {
          type: "FEATURED",
          featuredOptions: {
            featuredInfos: [{ type: "POPULAR" }, { type: "NEW" }],
          },
        },
      },
    },
  );
}

/* Promise resolves to:
 * {
 *   "_id": "002d8cb3-99a2-4c5e-b6b2-94db12675bcd",
 *   "revision": "2",
 *   "_createdDate": "2026-11-02T23:26:37.936Z",
 *   "_updatedDate": "2026-11-17T10:57:39.958Z",
 *   "itemDetails": {
 *     "strategy": {
 *       "type": "FREQUENTLY_ORDERED_TOGETHER"
 *     },
 *     "enabled": false
 *   },
 *   "purchaseFlow": {
 *     "strategy": {
 *       "type": "FEATURED",
 *       "featuredOptions": {
 *         "featuredInfos": [
 *           {
 *             "type": "POPULAR"
 *           },
 *           {
 *             "type": "NEW"
 *           }
 *         ]
 *       }
 *     },
 *     "enabled": true
 *   },
 *   "businessLocationId": "6deee905-6ac0-46eb-93d5-f8a1a2e0b310"
 * }
 */

```

### updateRecommendationSettings (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { recommendationSettings } from '@wix/restaurants';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { recommendationSettings },
  // Include the auth strategy and host as relevant
});


async function updateRecommendationSettings(_id,recommendationSettings) {
  const response = await myWixClient.recommendationSettings.updateRecommendationSettings(_id,recommendationSettings);
};
```

---