API reference

updateRestaurant

Required permission: RestaurantSettingsWrite or RestaurantQueueTimeWrite

graphql
updateRestaurant(
  restaurantId: ID!
  patch: RestaurantPatch!
): Restaurant

Arguments

Name Type Description
restaurantId ID!
patch RestaurantPatch!

Returns

Restaurant

Example

graphql
mutation UpdateRestaurant($restaurantId: ID!, $patch: RestaurantPatch!) {
  updateRestaurant(restaurantId: $restaurantId, patch: $patch) {
    id
    autoAcceptDeliveryHeroOrders
    deliveryHeroChainId
    deliveryHeroEnabled
    deliveryHeroVendorId
    deliveryHeroWebhookUrl
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { updateRestaurant(...) { __typename } }"}'