API reference
updateMenuAlternativeGroup
Required permission: RestaurantMenuWrite
updateMenuAlternativeGroup(
restaurantId: ID!
menuAlternativeGroupId: ID!
patch: MenuAlternativeGroupPatch!
): MenuAlternativeGroupArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
menuAlternativeGroupId |
ID! |
|
patch |
MenuAlternativeGroupPatch! |
Returns
Example
mutation UpdateMenuAlternativeGroup($restaurantId: ID!, $menuAlternativeGroupId: ID!, $patch: MenuAlternativeGroupPatch!) {
updateMenuAlternativeGroup(restaurantId: $restaurantId, menuAlternativeGroupId: $menuAlternativeGroupId, patch: $patch) {
id
forceChoice
isCountable
maxChoices
minChoices
name
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { updateMenuAlternativeGroup(...) { __typename } }"}'