# createMenuProduct

> Required permission: RestaurantMenuWrite

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

```graphql
createMenuProduct(
  restaurantId: ID!
  menuCategoryId: ID!
  input: MenuProductInput!
): MenuProduct
```

## Arguments

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

## Returns

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

## Example

```graphql
mutation CreateMenuProduct($restaurantId: ID!, $menuCategoryId: ID!, $input: MenuProductInput!) {
  createMenuProduct(restaurantId: $restaurantId, menuCategoryId: $menuCategoryId, input: $input) {
    id
    allergens
    carbohydratesMg
    energyKcal
    fatMg
    fiberMg
  }
}
```

```bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { createMenuProduct(...) { __typename } }"}'
```
