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