API reference
rearrangeMenuProducts
Required permission: RestaurantMenuWrite
rearrangeMenuProducts(
restaurantId: ID!
menuCategoryId: ID!
order: [ID!]!
): RearrangalStatusArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
menuCategoryId |
ID! |
|
order |
[ID!]! |
Returns
Example
mutation RearrangeMenuProducts($restaurantId: ID!, $menuCategoryId: ID!, $order: [ID!]!) {
rearrangeMenuProducts(restaurantId: $restaurantId, menuCategoryId: $menuCategoryId, order: $order)
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { rearrangeMenuProducts(...) { __typename } }"}'