# updateDeliveryLocation

> Required permission: RestaurantSettingsWrite

Source: https://docs.gastrogate.io/docs/api/mutations/updateDeliveryLocation

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

## Arguments

| Name | Type | Description |
| --- | --- | --- |
| `restaurantId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |
| `deliveryLocationId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |
| `patch` | [`DeliveryLocationPatch`](https://docs.gastrogate.io/docs/api/types/DeliveryLocationPatch.md)! |  |

## Returns

[`DeliveryLocation`](https://docs.gastrogate.io/docs/api/types/DeliveryLocation.md)

## 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 } }"}'
```
