# ProductMenuTreePosUpdatedEvent_V12

`EVENT /websocket/events/checks/ProductMenuTreePosUpdatedEvent`

Core API · MenuTrees - Events · base URL `https://core-api.ancon.io` · docs: https://ancon.dev/api/core/menu-trees-events/product-menu-tree-pos-updated-event-v12

Sent per outlet share when a product is published. Payload matches GET Tenants/{tenantId}/Outlets/{outletId}/Products/MenuTreePos.

Client types: POS

Groups: OutletId

Scopes: OutletId

## Responses

| Status | Description |
| --- | --- |
| 200 | Event payload schema |

### 200 response (`application/json`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `messageId` | string (uuid) | no |  |
| `clientId` | string (uuid) or null | no |  |
| `correlationId` | string or null | no |  |
| `timestamp` | integer (int64) | no |  |
| `products` | array<object> or null | no |  |
| `products[].id` | string (uuid) | no |  |
| `products[].name` | string or null | no |  |
| `products[].hasVariants` | boolean | no |  |
| `products[].combineProducts` | boolean | no |  |
| `products[].combineAutomatically` | boolean | no |  |
| `products[].mandatoryToPickVariant` | boolean | no |  |
| `products[].productType` | integer (int32) | no | Allowed values: `0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`. |
| `products[].isProductBlocked` | boolean | no |  |
| `products[].courseId` | string (uuid) or null | no |  |
| `products[].mainVariantId` | string (uuid) or null | no |  |
| `products[].mainVariantName` | string or null | no |  |
| `products[].mainVariantDefaultPrice` | number (double) or null | no |  |
| `products[].hasOptions` | boolean | no |  |
| `products[].requiresOptions` | boolean | no |  |
| `products[].isMainVariantOpenPrice` | boolean | no |  |
| `products[].hasPricePresets` | boolean | no |  |
| `products[].isAutoCombinable` | boolean | no |  |
| `products[].subProducts` | array<object> or null | no | Null - not empty - when the product is not auto combinable. |
| `products[].subProducts[].variantId` | string (uuid) or null | no |  |
| `products[].subProducts[].quantity` | number (double) | no |  |
| `products[].subProducts[].variantType` | integer (int32) | no | Allowed values: `0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`. |
| `products[].subProducts[].variantName` | string or null | no |  |

#### Example (from schema)

```json
{
  "messageId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "clientId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "correlationId": "string",
  "timestamp": 0,
  "products": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "name": "string",
      "hasVariants": true,
      "combineProducts": true,
      "combineAutomatically": true,
      "mandatoryToPickVariant": true,
      "productType": 0,
      "isProductBlocked": true,
      "courseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "mainVariantId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "mainVariantName": "string",
      "mainVariantDefaultPrice": 0,
      "hasOptions": true,
      "requiresOptions": true,
      "isMainVariantOpenPrice": true,
      "hasPricePresets": true,
      "isAutoCombinable": true,
      "subProducts": [
        {
          "variantId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "quantity": 0,
          "variantType": 0,
          "variantName": "string"
        }
      ]
    }
  ]
}
```
