API reference

relocateMenuProduct

Required permission: RestaurantMenuWrite

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

Arguments

Name Type Description
restaurantId ID!
menuProductId ID!
fromMenuCategoryId ID!
toMenuCategoryId ID!

Returns

RelocationStatus

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