API reference
updateMenuCategory
Required permission: RestaurantMenuWrite or RestaurantMenuStockWrite
updateMenuCategory(
restaurantId: ID!
menuCategoryId: ID!
patch: MenuCategoryPatch!
): MenuCategoryArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
menuCategoryId |
ID! |
|
patch |
MenuCategoryPatch! |
Returns
Example
mutation UpdateMenuCategory($restaurantId: ID!, $menuCategoryId: ID!, $patch: MenuCategoryPatch!) {
updateMenuCategory(restaurantId: $restaurantId, menuCategoryId: $menuCategoryId, patch: $patch) {
id
alignment
decoration
description
image
name
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { updateMenuCategory(...) { __typename } }"}'