---
title: "Create New Route"
method: POST
path: "/v1/Scheduling/routes"
tags: ["Scheduling"]
---

# Create New Route

`POST /v1/Scheduling/routes`

## Request

- Base URL: `https://example.com:443`
- URL: `https://example.com:443/v1/Scheduling/routes`
- Auth: none required
- TypeScript: <https://skmtc.dev/nayax/apis/nayax-cortina-api/docs/v1/Scheduling/routes/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a new route for the specified operator. The request body should include the details of the route to be created.

## Query parameters

- `OperatorId` integer

## Request body

- RouteCreateRequestDto
  - `RouteName` string, nullable: The name of the route to be created.
  - `RouteCode` string, nullable: The code used to identify the route to be created.
  - `DriverId` string, uuid: The unique identifier of the driver to be assigned to the route.
  - `RouteRemarks` string, nullable: Additional remarks or notes related to the route.
  - `RouteStatusId` integer: The status identifier of the route, indicating its initial status.

## Response `200`

The newly created route details.

- RouteResponseDto
  - `RouteId` integer: The unique identifier of the route.
  - `DriverId` string, uuid, nullable: The unique identifier of the driver assigned to the route.
  - `DriverName` string, nullable: The name of the driver assigned to the route.
  - `DriverMobile` string, nullable: The mobile phone number of the driver assigned to the route.
  - `RouteName` string, nullable: The name of the route.
  - `RouteCode` string, nullable: The code used to identify the route.
  - `RouteRemarks` string, nullable: Additional remarks or notes related to the route.
  - `RouteStatusId` integer: The status identifier of the route, indicating its current status.
  - `RouteMachineCount` string, nullable: The number of machines assigned to the route.
  - `CreatedDt` string, date-time: The date and time when the route was created.
  - `CreatedBy` integer: The identifier of the user who created the route.
  - `UpdatedDt` string, date-time, nullable: The date and time when the route was last updated.
  - `UpdatedBy` integer, nullable: The identifier of the user who last updated the route.

---

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