# createIngredient

> Required permission: RestaurantMenuWrite

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

```graphql
createIngredient(
  restaurantId: ID!
  input: IngredientInput!
): Ingredient
```

## Arguments

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

## Returns

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

## Example

```graphql
mutation CreateIngredient($restaurantId: ID!, $input: IngredientInput!) {
  createIngredient(restaurantId: $restaurantId, input: $input) {
    id
    nameEn
    nameSv
  }
}
```

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