API reference
relocateMenuProduct
Required permission: RestaurantMenuWrite
relocateMenuProduct(
restaurantId: ID!
menuProductId: ID!
fromMenuCategoryId: ID!
toMenuCategoryId: ID!
): RelocationStatusArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
menuProductId |
ID! |
|
fromMenuCategoryId |
ID! |
|
toMenuCategoryId |
ID! |
Returns
Example
mutation RelocateMenuProduct($restaurantId: ID!, $menuProductId: ID!, $fromMenuCategoryId: ID!, $toMenuCategoryId: ID!) {
relocateMenuProduct(restaurantId: $restaurantId, menuProductId: $menuProductId, fromMenuCategoryId: $fromMenuCategoryId, toMenuCategoryId: $toMenuCategoryId)
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { relocateMenuProduct(...) { __typename } }"}'