API reference
updateDeliveryLocation
Required permission: RestaurantSettingsWrite
updateDeliveryLocation(
restaurantId: ID!
deliveryLocationId: ID!
patch: DeliveryLocationPatch!
): DeliveryLocationArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
deliveryLocationId |
ID! |
|
patch |
DeliveryLocationPatch! |
Returns
Example
mutation UpdateDeliveryLocation($restaurantId: ID!, $deliveryLocationId: ID!, $patch: DeliveryLocationPatch!) {
updateDeliveryLocation(restaurantId: $restaurantId, deliveryLocationId: $deliveryLocationId, patch: $patch) {
id
amountPayableForOpenOrders
pendingOpenOrderCount
disabled
eatInEnabled
name
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { updateDeliveryLocation(...) { __typename } }"}'