# updateMenuCategory

> Required permission: RestaurantMenuWrite or RestaurantMenuStockWrite

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

```graphql
updateMenuCategory(
  restaurantId: ID!
  menuCategoryId: ID!
  patch: MenuCategoryPatch!
): MenuCategory
```

## Arguments

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

## Returns

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

## Example

```graphql
mutation UpdateMenuCategory($restaurantId: ID!, $menuCategoryId: ID!, $patch: MenuCategoryPatch!) {
  updateMenuCategory(restaurantId: $restaurantId, menuCategoryId: $menuCategoryId, patch: $patch) {
    id
    alignment
    decoration
    description
    image
    name
  }
}
```

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