API reference

updateMenuProduct

Required permission: RestaurantMenuWrite or RestaurantMenuStockWrite

graphql
updateMenuProduct(
  restaurantId: ID!
  menuProductId: ID!
  patch: MenuProductPatch!
): MenuProduct

Arguments

Name Type Description
restaurantId ID!
menuProductId ID!
patch MenuProductPatch!

Returns

MenuProduct

Example

graphql
mutation UpdateMenuProduct($restaurantId: ID!, $menuProductId: ID!, $patch: MenuProductPatch!) {
  updateMenuProduct(restaurantId: $restaurantId, menuProductId: $menuProductId, patch: $patch) {
    id
    allergens
    carbohydratesMg
    energyKcal
    fatMg
    fiberMg
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { updateMenuProduct(...) { __typename } }"}'