API reference
createMenuAlternativeGroup
Required permission: RestaurantMenuWrite
createMenuAlternativeGroup(
restaurantId: ID!
input: MenuAlternativeGroupInput!
): MenuAlternativeGroupArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
input |
MenuAlternativeGroupInput! |
Returns
Example
mutation CreateMenuAlternativeGroup($restaurantId: ID!, $input: MenuAlternativeGroupInput!) {
createMenuAlternativeGroup(restaurantId: $restaurantId, input: $input) {
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 { createMenuAlternativeGroup(...) { __typename } }"}'