# setDeliveryTimeSlotDisabled

> Required permission: RestaurantOpeningHoursWrite

Source: https://docs.gastrogate.io/docs/api/mutations/setDeliveryTimeSlotDisabled

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

## Arguments

| Name | Type | Description |
| --- | --- | --- |
| `restaurantId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |
| `deliveryTimeSlotId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |
| `disabled` | [`Boolean`](https://docs.gastrogate.io/docs/api/types/Boolean.md)! |  |
| `periodicityInput` | [`PeriodicityInput`](https://docs.gastrogate.io/docs/api/types/PeriodicityInput.md) |  |

## Returns

[`TogglingStatus`](https://docs.gastrogate.io/docs/api/types/TogglingStatus.md)

## 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 } }"}'
```
