API reference

rearrangeStockArticles

Required permission: RestaurantMenuStockWrite

graphql
rearrangeStockArticles(
  restaurantId: ID!
  order: [ID!]!
): Restaurant

Arguments

Name Type Description
restaurantId ID!
order [ID!]!

Returns

Restaurant

Example

graphql
mutation RearrangeStockArticles($restaurantId: ID!, $order: [ID!]!) {
  rearrangeStockArticles(restaurantId: $restaurantId, order: $order) {
    id
    autoAcceptDeliveryHeroOrders
    deliveryHeroChainId
    deliveryHeroEnabled
    deliveryHeroVendorId
    deliveryHeroWebhookUrl
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { rearrangeStockArticles(...) { __typename } }"}'