---
title: "Dispatch Optimized Orders"
method: POST
path: "/v1/activities/{id}/dispatch"
tags: ["Route"]
---

# Dispatch Optimized Orders

`POST /v1/activities/{id}/dispatch`

## Request

- Base URL: `https://api.sandbox.usenash.com`
- URL: `https://api.sandbox.usenash.com/v1/activities/{id}/dispatch`
- Auth: none declared

Dispatch orders from an optimization activity to delivery providers. Creates jobs and assigns them to providers based on the optimized routes.

## Path parameters

- `id` string, required: Activity id

## Request body

- DispatchOptimizationInputSerializer: Input for dispatching optimized orders.
  - `orderIds` string[], nullable: Order IDs to dispatch. If omitted, all orders from the optimization are dispatched.
  - `autoDispatch` boolean: Automatically dispatch to provider (default: true)

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