API reference

fetchUberEatsRestaurants

Required permission: RestaurantWrite

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

Arguments

Name Type Description
restaurantId ID!
input FetchUberEatsRestaurantsInput!

Returns

FetchUberEatsRestaurantsResult

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