# fetchUberEatsRestaurants

> Required permission: RestaurantWrite

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

```graphql
fetchUberEatsRestaurants(
  restaurantId: ID!
  input: FetchUberEatsRestaurantsInput!
): FetchUberEatsRestaurantsResult
```

## Arguments

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

## Returns

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

## Example

```graphql
mutation FetchUberEatsRestaurants($restaurantId: ID!, $input: FetchUberEatsRestaurantsInput!) {
  fetchUberEatsRestaurants(restaurantId: $restaurantId, input: $input) {
    accessToken
  }
}
```

```bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { fetchUberEatsRestaurants(...) { __typename } }"}'
```
