# relocateMenuCategory

> Required permission: RestaurantMenuWrite

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

```graphql
relocateMenuCategory(
  restaurantId: ID!
  menuCategoryId: ID!
  fromMenuPageId: ID!
  toMenuPageId: ID!
): RelocationStatus
```

## 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)! |  |
| `fromMenuPageId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |
| `toMenuPageId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |

## Returns

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

## Example

```graphql
mutation RelocateMenuCategory($restaurantId: ID!, $menuCategoryId: ID!, $fromMenuPageId: ID!, $toMenuPageId: ID!) {
  relocateMenuCategory(restaurantId: $restaurantId, menuCategoryId: $menuCategoryId, fromMenuPageId: $fromMenuPageId, toMenuPageId: $toMenuPageId)
}
```

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