API reference

relocateMenuCategory

Required permission: RestaurantMenuWrite

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

Arguments

Name Type Description
restaurantId ID!
menuCategoryId ID!
fromMenuPageId ID!
toMenuPageId ID!

Returns

RelocationStatus

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 } }"}'