API reference

acceptUberEatsIntegrationTermsOfService

Required permission: RestaurantWrite

graphql
acceptUberEatsIntegrationTermsOfService(
  restaurantId: ID!
): Restaurant

Arguments

Name Type Description
restaurantId ID!

Returns

Restaurant

Example

graphql
mutation AcceptUberEatsIntegrationTermsOfService($restaurantId: ID!) {
  acceptUberEatsIntegrationTermsOfService(restaurantId: $restaurantId) {
    id
    autoAcceptDeliveryHeroOrders
    deliveryHeroChainId
    deliveryHeroEnabled
    deliveryHeroVendorId
    deliveryHeroWebhookUrl
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { acceptUberEatsIntegrationTermsOfService(...) { __typename } }"}'