API reference
rearrangeStockArticles
Required permission: RestaurantMenuStockWrite
rearrangeStockArticles(
restaurantId: ID!
order: [ID!]!
): RestaurantArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
order |
[ID!]! |
Returns
Example
mutation RearrangeStockArticles($restaurantId: ID!, $order: [ID!]!) {
rearrangeStockArticles(restaurantId: $restaurantId, order: $order) {
id
autoAcceptDeliveryHeroOrders
deliveryHeroChainId
deliveryHeroEnabled
deliveryHeroVendorId
deliveryHeroWebhookUrl
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { rearrangeStockArticles(...) { __typename } }"}'