API reference
setStockArticleMenuProductRatio
Required permission: RestaurantMenuStockWrite
setStockArticleMenuProductRatio(
restaurantId: ID!
stockArticleId: ID!
menuProductId: ID!
ratio: Percentage!
): StockArticleArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
stockArticleId |
ID! |
|
menuProductId |
ID! |
|
ratio |
Percentage! |
Returns
Example
mutation SetStockArticleMenuProductRatio($restaurantId: ID!, $stockArticleId: ID!, $menuProductId: ID!, $ratio: Percentage!) {
setStockArticleMenuProductRatio(restaurantId: $restaurantId, stockArticleId: $stockArticleId, menuProductId: $menuProductId, ratio: $ratio) {
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 { setStockArticleMenuProductRatio(...) { __typename } }"}'