API reference

createMenuAlternativeGroup

Required permission: RestaurantMenuWrite

graphql
createMenuAlternativeGroup(
  restaurantId: ID!
  input: MenuAlternativeGroupInput!
): MenuAlternativeGroup

Arguments

Name Type Description
restaurantId ID!
input MenuAlternativeGroupInput!

Returns

MenuAlternativeGroup

Example

graphql
mutation CreateMenuAlternativeGroup($restaurantId: ID!, $input: MenuAlternativeGroupInput!) {
  createMenuAlternativeGroup(restaurantId: $restaurantId, input: $input) {
    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 { createMenuAlternativeGroup(...) { __typename } }"}'