API reference

updateRestaurantProduct

Required permission: RestaurantMenuWrite

graphql
updateRestaurantProduct(
  restaurantId: ID!
  restaurantProductId: ID!
  patch: RestaurantProductPatch!
): RestaurantProduct

Arguments

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

graphql
mutation UpdateRestaurantProduct($restaurantId: ID!, $restaurantProductId: ID!, $patch: RestaurantProductPatch!) {
  updateRestaurantProduct(restaurantId: $restaurantId, restaurantProductId: $restaurantProductId, patch: $patch) {
    id
    class
    name
    price
    priceIsOpen
    stateId
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { updateRestaurantProduct(...) { __typename } }"}'