# updateMenuProduct

> Required permission: RestaurantMenuWrite or RestaurantMenuStockWrite

Source: https://docs.gastrogate.io/docs/api/mutations/updateMenuProduct

```graphql
updateMenuProduct(
  restaurantId: ID!
  menuProductId: ID!
  patch: MenuProductPatch!
): MenuProduct
```

## Arguments

| Name | Type | Description |
| --- | --- | --- |
| `restaurantId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |
| `menuProductId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |
| `patch` | [`MenuProductPatch`](https://docs.gastrogate.io/docs/api/types/MenuProductPatch.md)! |  |

## Returns

[`MenuProduct`](https://docs.gastrogate.io/docs/api/types/MenuProduct.md)

## Example

```graphql
mutation UpdateMenuProduct($restaurantId: ID!, $menuProductId: ID!, $patch: MenuProductPatch!) {
  updateMenuProduct(restaurantId: $restaurantId, menuProductId: $menuProductId, patch: $patch) {
    id
    allergens
    carbohydratesMg
    energyKcal
    fatMg
    fiberMg
  }
}
```

```bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { updateMenuProduct(...) { __typename } }"}'
```
