API reference
updateRestaurant
Required permission: RestaurantSettingsWrite or RestaurantQueueTimeWrite
updateRestaurant(
restaurantId: ID!
patch: RestaurantPatch!
): RestaurantArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
patch |
RestaurantPatch! |
Returns
Example
mutation UpdateRestaurant($restaurantId: ID!, $patch: RestaurantPatch!) {
updateRestaurant(restaurantId: $restaurantId, patch: $patch) {
id
autoAcceptDeliveryHeroOrders
deliveryHeroChainId
deliveryHeroEnabled
deliveryHeroVendorId
deliveryHeroWebhookUrl
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { updateRestaurant(...) { __typename } }"}'