API reference
acceptDeliveryHeroIntegrationTermsOfService
Required permission: RestaurantWrite
acceptDeliveryHeroIntegrationTermsOfService(
restaurantId: ID!
input: AcceptDeliveryHeroIntegrationTermsOfServiceInput
): RestaurantArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
input |
AcceptDeliveryHeroIntegrationTermsOfServiceInput |
Returns
Example
mutation AcceptDeliveryHeroIntegrationTermsOfService($restaurantId: ID!) {
acceptDeliveryHeroIntegrationTermsOfService(restaurantId: $restaurantId) {
id
autoAcceptDeliveryHeroOrders
deliveryHeroChainId
deliveryHeroEnabled
deliveryHeroVendorId
deliveryHeroWebhookUrl
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { acceptDeliveryHeroIntegrationTermsOfService(...) { __typename } }"}'