# createDeliveryLocation

> Required permission: RestaurantSettingsWrite

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

```graphql
createDeliveryLocation(
  restaurantId: ID!
  input: DeliveryLocationInput!
): DeliveryLocation
```

## Arguments

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

## Returns

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

## Example

```graphql
mutation CreateDeliveryLocation($restaurantId: ID!, $input: DeliveryLocationInput!) {
  createDeliveryLocation(restaurantId: $restaurantId, input: $input) {
    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 { createDeliveryLocation(...) { __typename } }"}'
```
