# createStockArticle

> Required permission: RestaurantMenuStockWrite

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

```graphql
createStockArticle(
  restaurantId: ID!
  input: StockArticleInput!
): StockArticle
```

## Arguments

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

## Returns

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

## Example

```graphql
mutation CreateStockArticle($restaurantId: ID!, $input: StockArticleInput!) {
  createStockArticle(restaurantId: $restaurantId, input: $input) {
    id
    currentStock
    isVisible
    maxStockLevel
    minStockLevel
    name
  }
}
```

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