API reference
connectDeliveryHeroIntegration
The connectDeliveryHeroIntegration mutation. Returns Restaurant.
connectDeliveryHeroIntegration(
restaurantId: ID!
accessToken: String!
input: ConnectDeliveryHeroIntegrationInput!
): RestaurantArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
accessToken |
String! |
|
input |
ConnectDeliveryHeroIntegrationInput! |
Returns
Example
mutation ConnectDeliveryHeroIntegration($restaurantId: ID!, $accessToken: String!, $input: ConnectDeliveryHeroIntegrationInput!) {
connectDeliveryHeroIntegration(restaurantId: $restaurantId, accessToken: $accessToken, input: $input) {
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 { connectDeliveryHeroIntegration(...) { __typename } }"}'