API reference

setDeliveryTimeSlotDisabled

Required permission: RestaurantOpeningHoursWrite

graphql
setDeliveryTimeSlotDisabled(
  restaurantId: ID!
  deliveryTimeSlotId: ID!
  disabled: Boolean!
  periodicityInput: PeriodicityInput
): TogglingStatus

Arguments

Name Type Description
restaurantId ID!
deliveryTimeSlotId ID!
disabled Boolean!
periodicityInput PeriodicityInput

Returns

TogglingStatus

Example

graphql
mutation SetDeliveryTimeSlotDisabled($restaurantId: ID!, $deliveryTimeSlotId: ID!, $disabled: Boolean!) {
  setDeliveryTimeSlotDisabled(restaurantId: $restaurantId, deliveryTimeSlotId: $deliveryTimeSlotId, disabled: $disabled)
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { setDeliveryTimeSlotDisabled(...) { __typename } }"}'