API reference

acceptDeliveryHeroIntegrationTermsOfService

Required permission: RestaurantWrite

graphql
acceptDeliveryHeroIntegrationTermsOfService(
  restaurantId: ID!
  input: AcceptDeliveryHeroIntegrationTermsOfServiceInput
): Restaurant

Arguments

Name Type Description
restaurantId ID!
input AcceptDeliveryHeroIntegrationTermsOfServiceInput

Returns

Restaurant

Example

graphql
mutation AcceptDeliveryHeroIntegrationTermsOfService($restaurantId: ID!) {
  acceptDeliveryHeroIntegrationTermsOfService(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 { acceptDeliveryHeroIntegrationTermsOfService(...) { __typename } }"}'