# createMenuAlternativeGroup

> Required permission: RestaurantMenuWrite

Source: https://docs.gastrogate.io/docs/api/mutations/createMenuAlternativeGroup

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

## Arguments

| Name | Type | Description |
| --- | --- | --- |
| `restaurantId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |
| `input` | [`MenuAlternativeGroupInput`](https://docs.gastrogate.io/docs/api/types/MenuAlternativeGroupInput.md)! |  |

## Returns

[`MenuAlternativeGroup`](https://docs.gastrogate.io/docs/api/types/MenuAlternativeGroup.md)

## 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 } }"}'
```
