API reference

prepareStockArticle

Schedules an increase to the stock after the preparationTime of the article has elapsed. Required permission: RestaurantMenuStockWrite

graphql
prepareStockArticle(
  restaurantId: ID!
  stockArticleId: ID!
  input: StockArticlePrepareInput!
): StockArticle

Arguments

Name Type Description
restaurantId ID!
stockArticleId ID!
input StockArticlePrepareInput!

Returns

StockArticle

Example

graphql
mutation PrepareStockArticle($restaurantId: ID!, $stockArticleId: ID!, $input: StockArticlePrepareInput!) {
  prepareStockArticle(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 { prepareStockArticle(...) { __typename } }"}'