> ## Documentation Index
> Fetch the complete documentation index at: https://nayax-44d6e37b-docs-marshall-faq-redistribution.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create New Route

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



## OpenAPI

````yaml /openapi/lynx.yaml post /v1/Scheduling/routes
openapi: 3.0.1
info:
  title: Nayax Operational Lynx API
  version: v1
servers:
  - url: https://qa-lynx.nayax.com/operational
security:
  - Authorization: []
paths:
  /v1/Scheduling/routes:
    post:
      tags:
        - Scheduling
      summary: Create New Route
      description: >-
        Creates a new route for the specified operator. The request body should
        include the details of the route to be created.
      operationId: create-new-route
      parameters:
        - name: OperatorId
          in: query
          description: >-
            The unique identifier of the operator for whom the route is being
            created.
          schema:
            type: integer
            format: int32
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RouteCreateRequestDto'
      responses:
        '200':
          description: The newly created route details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RouteResponseDto'
components:
  schemas:
    RouteCreateRequestDto:
      type: object
      properties:
        RouteName:
          type: string
          nullable: true
          description: The name of the route to be created.
        RouteCode:
          type: string
          nullable: true
          description: The code used to identify the route to be created.
        DriverId:
          type: string
          format: uuid
          description: The unique identifier of the driver to be assigned to the route.
        RouteRemarks:
          type: string
          nullable: true
          description: Additional remarks or notes related to the route.
        RouteStatusId:
          type: integer
          format: int32
          description: The status identifier of the route, indicating its initial status.
      additionalProperties: false
    RouteResponseDto:
      type: object
      properties:
        RouteId:
          type: integer
          format: int64
          description: The unique identifier of the route.
        DriverId:
          type: string
          format: uuid
          nullable: true
          description: The unique identifier of the driver assigned to the route.
        DriverName:
          type: string
          nullable: true
          description: The name of the driver assigned to the route.
        DriverMobile:
          type: string
          nullable: true
          description: The mobile phone number of the driver assigned to the route.
        RouteName:
          type: string
          nullable: true
          description: The name of the route.
        RouteCode:
          type: string
          nullable: true
          description: The code used to identify the route.
        RouteRemarks:
          type: string
          nullable: true
          description: Additional remarks or notes related to the route.
        RouteStatusId:
          type: integer
          format: int32
          description: The status identifier of the route, indicating its current status.
        RouteMachineCount:
          type: string
          nullable: true
          description: The number of machines assigned to the route.
        CreatedDt:
          type: string
          format: date-time
          description: The date and time when the route was created.
        CreatedBy:
          type: integer
          format: int64
          description: The identifier of the user who created the route.
        UpdatedDt:
          type: string
          format: date-time
          nullable: true
          description: The date and time when the route was last updated.
        UpdatedBy:
          type: integer
          format: int64
          nullable: true
          description: The identifier of the user who last updated the route.
      additionalProperties: false
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer
      description: Enter your Bearer token. It's required to authenticate API requests.

````