API reference

updateDeliveryLocation

Required permission: RestaurantSettingsWrite

graphql
updateDeliveryLocation(
  restaurantId: ID!
  deliveryLocationId: ID!
  patch: DeliveryLocationPatch!
): DeliveryLocation

Arguments

Name Type Description
restaurantId ID!
deliveryLocationId ID!
patch DeliveryLocationPatch!

Returns

DeliveryLocation

Example

graphql
mutation UpdateDeliveryLocation($restaurantId: ID!, $deliveryLocationId: ID!, $patch: DeliveryLocationPatch!) {
  updateDeliveryLocation(restaurantId: $restaurantId, deliveryLocationId: $deliveryLocationId, patch: $patch) {
    id
    amountPayableForOpenOrders
    pendingOpenOrderCount
    disabled
    eatInEnabled
    name
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { updateDeliveryLocation(...) { __typename } }"}'