# adjustStockArticle

> Sets the absolute stock quantity immediately, overwriting the current stock.

Required permission: RestaurantMenuStockWrite

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

```graphql
adjustStockArticle(
  restaurantId: ID!
  stockArticleId: ID!
  input: StockArticleAdjustInput!
): 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)! |  |
| `input` | [`StockArticleAdjustInput`](https://docs.gastrogate.io/docs/api/types/StockArticleAdjustInput.md)! |  |

## Returns

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

## Example

```graphql
mutation AdjustStockArticle($restaurantId: ID!, $stockArticleId: ID!, $input: StockArticleAdjustInput!) {
  adjustStockArticle(restaurantId: $restaurantId, stockArticleId: $stockArticleId, 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 { adjustStockArticle(...) { __typename } }"}'
```
