> 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`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: Introduction ## Article: Introduction ## Article Link: https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/operation-groups/introduction.md ## Article Content: # About the Operation Groups API The Operation Groups API allows you to manage operation groups for a restaurant. An [operation](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/operations/introduction.md) is a distinct service provided at a single restaurant location. For example, the catering service provided at a restaurant's California location. An operation group is the set of operations for a particular service provided across all of a restaurant's locations. For example, if a restaurant has a takeaway service offered at 3 different restaurant locations, they will have a Catering operation group with a catering operation for each of their 3 locations. **Example of restaurant with multiple services across multiple locations:** | Operation Group | Operation | Location | |----------------------|---------------------|--------------| | Catering | Operation 1 | California | | Catering | Operation 2 | New York | | Catering | Operation 3 | London | | Takeaway | Operation 4 | California | | Takeaway | Operation 5 | New York | | Takeaway | Operation 6 | London | You can create an operation group for any configuration based on your restaurant offerings, not just for entirely distinct services like catering and takeaway. For example, you could create one operation group for the restaurant's regular hours and menus, and another for Easter hours and menus. With the Operation Groups API, you can: - Create, retrieve, update, and delete individual or multiple operation groups. - Manage [tags](https://dev.wix.com/docs/rest/business-management/tags/introduction.md) for individual or multiple operation groups. ## Operation group behaviour Before an operation can become active and available for online orders, it must be connected to an operation group. There can only be 1 operation for a given [location](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/about-business-locations.md) in an operation group. In other words, an operation can't have the same combination of `businessLocationId` and `operationGroupId` as another operation. You can't change an operation's operation group or location. On Wix sites, all operations under the same operation group are displayed and configured together. By default, Wix aggregates operations from the same operation group under the same page on a Wix site. These are called ordering pages. ### Adding a new location to a Wix site When the Wix Restaurants Orders app is installed, if the site has at least one location configured, an operation group is created containing an operation for each location. If no locations are configured an operation group containing a single operation with no location is created. When the first location is added, the single operation in each group is assigned to the new location. When a subsequent location is added, a new operation is created for each operation group and assigned to the new location. For more information, see [About Business Locations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/about-business-locations.md). #### Example There are 2 operation groups ("Catering" and "Takeaway") and 1 location (“California”) on a site, and you add a new location ("New York"). Wix generates 2 new operations: | Operation Group | Operation | Location | | |-------------------|------------------|-------------|----------| | Catering | Operation 1 | California | | | Catering | Operation 2 | New York | (New) | | Takeaway | Operation 3 | California | | | Takeaway | Operation 4 | New York | (New) | ### Adding a new operation group to a Wix site If a site has multiple locations, when an operation group is created for a restaurant service, individual operations for that restautant service are created for each of the site's locations. Each of these operations have their own configuration for online ordering and menus. If there are no locations on the site - Wix creates a single operation with a `businessLocationId` of `"none"` per operation group. If a location is later added, these operations with no `businessLocationId` are assigned that location. #### Example There are 3 locations (“California”, “New York”, and “London”) and 1 operation group ("Catering"). You then create another operation group ("Takeaway"). Wix generates 3 additional operations: | Operation Group | Operation | Location | | |-------------------|------------------|-------------|----------| | Catering | Operation 1 | California | | | Catering | Operation 2 | New York | | | Catering | Operation 3 | London | | | Takeaway | Operation 4 | California | (New) | | Takeaway | Operation 5 | New York | (New) | | Takeaway | Operation 6 | London | (New) | ### Deleting an operation group If an operation group is deleted, all operations belonging to the operation group are deleted. ## Before you begin The Wix user must install the Wix Restaurants Orders app. @sdk_package_setup