API reference

updateMenuCategory

Required permission: RestaurantMenuWrite or RestaurantMenuStockWrite

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

Arguments

Name Type Description
restaurantId ID!
menuCategoryId ID!
patch MenuCategoryPatch!

Returns

MenuCategory

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