API reference
updateRestaurantProduct
Required permission: RestaurantMenuWrite
updateRestaurantProduct(
restaurantId: ID!
restaurantProductId: ID!
patch: RestaurantProductPatch!
): RestaurantProductArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
restaurantProductId |
ID! |
|
patch |
RestaurantProductPatch! |
Returns
RestaurantProduct — A standalone product that is orderable by id but never appears in the menu. Used by features such as gift cards and upsells.
Example
mutation UpdateRestaurantProduct($restaurantId: ID!, $restaurantProductId: ID!, $patch: RestaurantProductPatch!) {
updateRestaurantProduct(restaurantId: $restaurantId, restaurantProductId: $restaurantProductId, patch: $patch) {
id
class
name
price
priceIsOpen
stateId
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { updateRestaurantProduct(...) { __typename } }"}'