API reference

updateMenuAlternativeGroup

Required permission: RestaurantMenuWrite

graphql
updateMenuAlternativeGroup(
  restaurantId: ID!
  menuAlternativeGroupId: ID!
  patch: MenuAlternativeGroupPatch!
): MenuAlternativeGroup

Arguments

Name Type Description
restaurantId ID!
menuAlternativeGroupId ID!
patch MenuAlternativeGroupPatch!

Returns

MenuAlternativeGroup

Example

graphql
mutation UpdateMenuAlternativeGroup($restaurantId: ID!, $menuAlternativeGroupId: ID!, $patch: MenuAlternativeGroupPatch!) {
  updateMenuAlternativeGroup(restaurantId: $restaurantId, menuAlternativeGroupId: $menuAlternativeGroupId, patch: $patch) {
    id
    forceChoice
    isCountable
    maxChoices
    minChoices
    name
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { updateMenuAlternativeGroup(...) { __typename } }"}'