API reference
createDeliveryTimeArea
Required permission: RestaurantWrite
createDeliveryTimeArea(
restaurantId: ID!
input: DeliveryTimeAreaInput!
): RestaurantArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
input |
DeliveryTimeAreaInput! |
Returns
Example
mutation CreateDeliveryTimeArea($restaurantId: ID!, $input: DeliveryTimeAreaInput!) {
createDeliveryTimeArea(restaurantId: $restaurantId, 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 { createDeliveryTimeArea(...) { __typename } }"}'