# updateStockArticle

> Required permission: RestaurantMenuStockWrite

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

```graphql
updateStockArticle(
  restaurantId: ID!
  stockArticleId: ID!
  patch: StockArticlePatch!
): StockArticle
```

## Arguments

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

## Returns

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

## Example

```graphql
mutation UpdateStockArticle($restaurantId: ID!, $stockArticleId: ID!, $patch: StockArticlePatch!) {
  updateStockArticle(restaurantId: $restaurantId, stockArticleId: $stockArticleId, patch: $patch) {
    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 { updateStockArticle(...) { __typename } }"}'
```
