API reference

createDeliveryTimeArea

Required permission: RestaurantWrite

graphql
createDeliveryTimeArea(
  restaurantId: ID!
  input: DeliveryTimeAreaInput!
): Restaurant

Arguments

Name Type Description
restaurantId ID!
input DeliveryTimeAreaInput!

Returns

Restaurant

Example

graphql
mutation CreateDeliveryTimeArea($restaurantId: ID!, $input: DeliveryTimeAreaInput!) {
  createDeliveryTimeArea(restaurantId: $restaurantId, input: $input) {
    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 { createDeliveryTimeArea(...) { __typename } }"}'