---
title: "Disable a delivery window"
method: PATCH
path: "/v1/delivery-window/{id}/disable"
tags: ["Delivery Windows"]
---

# Disable a delivery window

`PATCH /v1/delivery-window/{id}/disable`

## Request

- Base URL: `https://api.sandbox.usenash.com`
- URL: `https://api.sandbox.usenash.com/v1/delivery-window/{id}/disable`
- Auth: none declared

Disable a delivery window so it is no longer available for new bookings. Existing bookings are not affected.

## Path parameters

- `id` string, required: The id of the delivery window

## Response `200`

OK

- DeliveryWindowOutput: Response for a delivery window.
  - `id` string, required: The ID of the delivery window.
  - `name` string, required: The name of the delivery window.
  - `startTime` string, required: The start time of the delivery window.
  - `startTimeLocal` string, required: The start time of the delivery window in local timezone.
  - `endTime` string, required: The end time of the delivery window.
  - `endTimeLocal` string, required: The end time of the delivery window in local timezone.
  - `timezoneId` string, required: The timezone id of the delivery window.
  - `cutoffTime` string, required: The cutoff time of the delivery window.
  - `cutoffTimeLocal` string, required: The cutoff time of the delivery window in local timezone.
  - `rrule` string, required: The rrule of the delivery window.
  - `exceptionDates` string[], required: The exception dates of the delivery window.
  - `allowedTags` string[], required: The allowed tags of the delivery window.
  - `leadTimeMinutes` integer, required: The lead time of the delivery window.
  - `priceCents` integer, required: The price of the delivery window.
  - `minimumOrderValueCents` integer, required: The minimum order value of the delivery window.
  - `maximumCapacity` integer, required: The maximum capacity of the delivery window.
  - `storeLocationId` string, required: The store location id of the delivery window.
  - `zoneId` string, required: The zone id of the delivery window.
  - `zoneExternalId` string, required: The external zone id of the delivery window.
  - `windowMetadata` object, required: The metadata of the delivery window.
  - `isActive` boolean, required: Whether the delivery window is active.
  - `isDeleted` boolean, required: Whether the delivery window is deleted.

## Other responses

- `422`: Unprocessable Content

---

[API](https://skmtc.dev/nash/apis/nash-api.md) - [All operations](https://skmtc.dev/nash/apis/nash-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nash/apis/nash-api/revisions/e3713837c5c9?raw)
