# relocateMenuProduct

> Required permission: RestaurantMenuWrite

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

```graphql
relocateMenuProduct(
  restaurantId: ID!
  menuProductId: ID!
  fromMenuCategoryId: ID!
  toMenuCategoryId: ID!
): RelocationStatus
```

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

## Returns

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

## Example

```graphql
mutation RelocateMenuProduct($restaurantId: ID!, $menuProductId: ID!, $fromMenuCategoryId: ID!, $toMenuCategoryId: ID!) {
  relocateMenuProduct(restaurantId: $restaurantId, menuProductId: $menuProductId, fromMenuCategoryId: $fromMenuCategoryId, toMenuCategoryId: $toMenuCategoryId)
}
```

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