---
title: "Create Dispatch Plan From Routes"
method: POST
path: "/v1/plans:from-routes"
tags: ["Dispatch plans"]
---

# Create Dispatch Plan From Routes

`POST /v1/plans:from-routes`

## Request

- Base URL: `https://api.sandbox.usenash.com`
- URL: `https://api.sandbox.usenash.com/v1/plans:from-routes`
- Auth: none declared

Create a draft dispatch plan that takes whole undispatched `routeIds` and their orders. The live routes are archived and the plan holds their orders. Needs `write.plan`; a plan source or label rollout that is off for your organization returns 403. Returns the plan id, its draft revision and how many orders start unplanned.

## Request body

- CreateDispatchPlanFromRoutesRequest
  - `startDate` string, date, nullable
  - `endDate` string, date, nullable
  - `timezoneId` string, nullable
  - `zoneIds` string[]
  - `name` string, required
  - `tags` string[]
  - `routeIds` string[], required

## Response `200`

OK

- CreatedDispatchPlan
  - `planId` string, required
  - `revision` integer, required
  - `unplannedOrderCount` integer, required

## 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)
