API reference
updateStockArticle
Required permission: RestaurantMenuStockWrite
updateStockArticle(
restaurantId: ID!
stockArticleId: ID!
patch: StockArticlePatch!
): StockArticleArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
stockArticleId |
ID! |
|
patch |
StockArticlePatch! |
Returns
Example
mutation UpdateStockArticle($restaurantId: ID!, $stockArticleId: ID!, $patch: StockArticlePatch!) {
updateStockArticle(restaurantId: $restaurantId, stockArticleId: $stockArticleId, patch: $patch) {
id
currentStock
isVisible
maxStockLevel
minStockLevel
name
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { updateStockArticle(...) { __typename } }"}'