# updateMenuPage

> Required permission: RestaurantMenuWrite or RestaurantMenuStockWrite

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

```graphql
updateMenuPage(
  restaurantId: ID!
  menuPageId: ID!
  patch: MenuPagePatch!
): MenuPage
```

## Arguments

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

## Returns

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

## Example

```graphql
mutation UpdateMenuPage($restaurantId: ID!, $menuPageId: ID!, $patch: MenuPagePatch!) {
  updateMenuPage(restaurantId: $restaurantId, menuPageId: $menuPageId, patch: $patch) {
    id
    name
    categoryCount
    productCount
    temporarilyDisabled
  }
}
```

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