API reference
setDeliveryTimeSlotDisabled
Required permission: RestaurantOpeningHoursWrite
setDeliveryTimeSlotDisabled(
restaurantId: ID!
deliveryTimeSlotId: ID!
disabled: Boolean!
periodicityInput: PeriodicityInput
): TogglingStatusArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
deliveryTimeSlotId |
ID! |
|
disabled |
Boolean! |
|
periodicityInput |
PeriodicityInput |
Returns
Example
mutation SetDeliveryTimeSlotDisabled($restaurantId: ID!, $deliveryTimeSlotId: ID!, $disabled: Boolean!) {
setDeliveryTimeSlotDisabled(restaurantId: $restaurantId, deliveryTimeSlotId: $deliveryTimeSlotId, disabled: $disabled)
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { setDeliveryTimeSlotDisabled(...) { __typename } }"}'