> 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

# BulkUpdateRecommendationSettings

# Package: recommendations

# Namespace: RecommendationSettingsService

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

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

## Introduction

Updates the recommendation settings of up to 50 operations.

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.

Each item is updated the same way as in [Update Recommendation Settings](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendation-settings/update-recommendation-settings.md):
only the fields specified in its `recommendationSettings` are updated.

Items succeed or fail independently, so a failed item doesn't stop the others. Results are returned in the same
order as the items in the request.

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

---

## REST API

### Schema

```
 Method: bulkUpdateRecommendationSettings
 Description: Updates the recommendation settings of up to 50 operations.  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.  Each item is updated the same way as in [Update Recommendation Settings](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendation-settings/update-recommendation-settings.md): only the fields specified in its `recommendationSettings` are updated.  Items succeed or fail independently, so a failed item doesn't stop the others. Results are returned in the same order as the items in the request.  To update the recommendation settings of a single operation, call [Update Recommendation Settings](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendation-settings/update-recommendation-settings.md).
 URL: https://www.wixapis.com/restaurants/ordering-recommendations/v1/bulk/recommendation-settings/update
 Method: POST
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  recommendationSettings, recommendationSettings.recommendationSettings, recommendationSettings.recommendationSettings.id, recommendationSettings.recommendationSettings.revision, recommendationSettings.recommendationSettings.itemDetails.strategy.type, recommendationSettings.recommendationSettings.itemDetails.strategy.featuredOptions.featuredInfos, recommendationSettings.recommendationSettings.purchaseFlow.strategy.type, recommendationSettings.recommendationSettings.purchaseFlow.strategy.featuredOptions.featuredInfos
 Method parameters: 
   param name: recommendationSettings | type: array<recommendationSettings> | description: Recommendation settings to update. | required: true | validation: minItems 1, maxItems 50
              - name: recommendationSettings | type: RecommendationSettings | description: Recommendation settings to update. `id` and `revision` are required.  When `strategy` is specified, `strategy.type` is required, and `strategy.featuredOptions.featuredInfos` is required when `type` is `FEATURED`. | 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`  
   param name: returnEntity | type: returnEntity | description: Whether to return the updated recommendation settings in the results.  Default: `false`  
 Return type: BulkUpdateRecommendationSettingsResponse
  - name: results | type: array<BulkRecommendationSettingsResult> | description: Result for each item, in request order.  | validation: minItems 1, maxItems 50
     - name: itemMetadata | type: ItemMetadata | description: Metadata of the item: the recommendation settings GUID, the item's index in the request, and whether the update succeeded. Includes the error when the update failed.  
        - name: id | type: string | description: Item GUID. Should always be available, unless it's impossible (for example, when failing to create an item).  | validation: format GUID
        - name: originalIndex | type: integer | description: Index of the item within the request array. Allows for correlation between request and response items.  
        - name: success | type: boolean | description: Whether the requested action was successful for this item. When `false`, the `error` field is populated.  
        - name: error | type: ApplicationError | description: Details about the error in case of failure.  
           - name: code | type: string | description: Error code.  
           - name: description | type: string | description: Description of the error.  
           - name: data | type: object | description: Data related to the error.  
     - name: item | type: RecommendationSettings | description: Updated recommendation settings.  Returned only when `returnEntity` is `true` and the update succeeded.  
        - 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
  - name: bulkActionMetadata | type: BulkActionMetadata | description: Total number of successful and failed updates.  
     - name: totalSuccesses | type: integer | description: Number of items that were successfully processed.  
     - name: totalFailures | type: integer | description: Number of items that couldn't be processed.  
     - name: undetailedFailures | type: integer | description: Number of failures without details because detailed failure threshold was exceeded.  


```

### Examples

### Turn on item details recommendations for 2 operations
Enables recommendations in item details for 2 operations and returns the updated recommendation settings.

```curl
curl -X POST \
'https://www.wixapis.com/restaurants/ordering-recommendations/v1/bulk/recommendation-settings/update' \
-H 'Authorization: <AUTH>' \
-H 'Content-Type: application/json' \
-d '{
  "recommendationSettings": [
    {
      "recommendationSettings": {
        "id": "002d8cb3-99a2-4c5e-b6b2-94db12675bcd",
        "revision": "3",
        "itemDetails": {
          "enabled": true
        }
      }
    },
    {
      "recommendationSettings": {
        "id": "0747422e-82f5-461f-840e-4118aaf20e5f",
        "revision": "1",
        "itemDetails": {
          "enabled": true
        }
      }
    }
  ],
  "returnEntity": true
}'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.restaurants.recommendationSettings.bulkUpdateRecommendationSettings(recommendationSettings, options)
 Description: Updates the recommendation settings of up to 50 operations.  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.  Each item is updated the same way as in [Update Recommendation Settings](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendation-settings/update-recommendation-settings.md): only the fields specified in its `recommendationSettings` are updated.  Items succeed or fail independently, so a failed item doesn't stop the others. Results are returned in the same order as the items in the request.  To update the recommendation settings of a single operation, call [Update Recommendation Settings](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendation-settings/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, recommendationSettings.recommendationSettings, recommendationSettings.recommendationSettings._id, recommendationSettings.recommendationSettings.revision, recommendationSettings.recommendationSettings.itemDetails.strategy.type, recommendationSettings.recommendationSettings.itemDetails.strategy.featuredOptions.featuredInfos, recommendationSettings.recommendationSettings.purchaseFlow.strategy.type, recommendationSettings.recommendationSettings.purchaseFlow.strategy.featuredOptions.featuredInfos
 Method parameters: 
   param name: recommendationSettings | type: array<MaskedRecommendationSettings> | description: Recommendation settings to update. | required: true | validation: minItems 1, maxItems 50
              - name: recommendationSettings | type: RecommendationSettings | description: Recommendation settings to update. `id` and `revision` are required.  When `strategy` is specified, `strategy.type` is required, and `strategy.featuredOptions.featuredInfos` is required when `type` is `FEATURED`. | 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`  
   param name: options | type: BulkUpdateRecommendationSettingsOptions  none  
        - name: returnEntity | type: boolean | description: Whether to return the updated recommendation settings in the results.  Default: `false`  
 Return type: PROMISE<BulkUpdateRecommendationSettingsResponse>
  - name: results | type: array<BulkRecommendationSettingsResult> | description: Result for each item, in request order.  | validation: minItems 1, maxItems 50
     - name: itemMetadata | type: ItemMetadata | description: Metadata of the item: the recommendation settings GUID, the item's index in the request, and whether the update succeeded. Includes the error when the update failed.  
        - name: _id | type: string | description: Item GUID. Should always be available, unless it's impossible (for example, when failing to create an item).  | validation: format GUID
        - name: originalIndex | type: integer | description: Index of the item within the request array. Allows for correlation between request and response items.  
        - name: success | type: boolean | description: Whether the requested action was successful for this item. When `false`, the `error` field is populated.  
        - name: error | type: ApplicationError | description: Details about the error in case of failure.  
           - name: code | type: string | description: Error code.  
           - name: description | type: string | description: Description of the error.  
           - name: data | type: object | description: Data related to the error.  
     - name: item | type: RecommendationSettings | description: Updated recommendation settings.  Returned only when `returnEntity` is `true` and the update succeeded.  
        - 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
  - name: bulkActionMetadata | type: BulkActionMetadata | description: Total number of successful and failed updates.  
     - name: totalSuccesses | type: integer | description: Number of items that were successfully processed.  
     - name: totalFailures | type: integer | description: Number of items that couldn't be processed.  
     - name: undetailedFailures | type: integer | description: Number of failures without details because detailed failure threshold was exceeded.  


```

### Examples

### Turn on item details recommendations for 2 operations
Enables recommendations in item details for 2 operations and returns the updated recommendation settings.

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

async function bulkUpdateRecommendationSettings() {
  const response = await recommendationSettings.bulkUpdateRecommendationSettings(
    [
      {
        recommendationSettings: {
          _id: "002d8cb3-99a2-4c5e-b6b2-94db12675bcd",
          revision: "3",
          itemDetails: {
            enabled: true,
          },
        },
      },
      {
        recommendationSettings: {
          _id: "0747422e-82f5-461f-840e-4118aaf20e5f",
          revision: "1",
          itemDetails: {
            enabled: true,
          },
        },
      },
    ],
    {
      returnEntity: true,
    },
  );
}

/* Promise resolves to:
 * {
 *   "results": [
 *     {
 *       "itemMetadata": {
 *         "_id": "002d8cb3-99a2-4c5e-b6b2-94db12675bcd",
 *         "originalIndex": 0,
 *         "success": true
 *       },
 *       "item": {
 *         "_id": "002d8cb3-99a2-4c5e-b6b2-94db12675bcd",
 *         "revision": "4",
 *         "_createdDate": "2026-11-02T23:26:37.936Z",
 *         "_updatedDate": "2026-11-17T11:09:47.292Z",
 *         "itemDetails": {
 *           "strategy": {
 *             "type": "FREQUENTLY_ORDERED_TOGETHER"
 *           },
 *           "enabled": true
 *         },
 *         "purchaseFlow": {
 *           "strategy": {
 *             "type": "FREQUENTLY_ORDERED_TOGETHER"
 *           },
 *           "enabled": false
 *         },
 *         "businessLocationId": "6deee905-6ac0-46eb-93d5-f8a1a2e0b310"
 *       }
 *     },
 *     {
 *       "itemMetadata": {
 *         "_id": "0747422e-82f5-461f-840e-4118aaf20e5f",
 *         "originalIndex": 1,
 *         "success": true
 *       },
 *       "item": {
 *         "_id": "0747422e-82f5-461f-840e-4118aaf20e5f",
 *         "revision": "2",
 *         "_createdDate": "2026-10-28T14:16:37.113Z",
 *         "_updatedDate": "2026-11-17T11:09:47.306Z",
 *         "itemDetails": {
 *           "strategy": {
 *             "type": "FREQUENTLY_ORDERED_TOGETHER"
 *           },
 *           "enabled": true
 *         },
 *         "purchaseFlow": {
 *           "strategy": {
 *             "type": "FREQUENTLY_ORDERED_TOGETHER"
 *           },
 *           "enabled": false
 *         },
 *         "businessLocationId": "6ae66b5d-0795-4d95-a3db-8e8bdf4748f1"
 *       }
 *     }
 *   ],
 *   "bulkActionMetadata": {
 *     "totalSuccesses": 2,
 *     "totalFailures": 0,
 *     "undetailedFailures": 0
 *   }
 * }
 */

```

### bulkUpdateRecommendationSettings (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 bulkUpdateRecommendationSettings(recommendationSettings,options) {
  const response = await myWixClient.recommendationSettings.bulkUpdateRecommendationSettings(recommendationSettings,options);
};
```

---