Skip to main content
PUT
/
v1
/
Scheduling
/
routes
Update Route
curl --request PUT \
  --url https://qa-lynx.nayax.com/operational/v1/Scheduling/routes \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "OperatorId": 123,
  "RouteName": "<string>",
  "RouteCode": "<string>",
  "DriverId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "RouteRemarks": "<string>",
  "RouteStatusId": 123
}
'
{
  "RouteId": 123,
  "DriverId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "DriverName": "<string>",
  "DriverMobile": "<string>",
  "RouteName": "<string>",
  "RouteCode": "<string>",
  "RouteRemarks": "<string>",
  "RouteStatusId": 123,
  "RouteMachineCount": "<string>",
  "CreatedDt": "2023-11-07T05:31:56Z",
  "CreatedBy": 123,
  "UpdatedDt": "2023-11-07T05:31:56Z",
  "UpdatedBy": 123
}

Authorizations

Authorization
string
header
required

Enter your API key. It's required to authenticate API requests.

Query Parameters

routeId
integer<int32>

The unique identifier of the route to be updated.

Body

application/json
OperatorId
integer<int64>

The unique identifier of the operator associated with the route being updated.

RouteName
string | null

The updated name of the route.

RouteCode
string | null

The updated code used to identify the route.

DriverId
string<uuid>

The unique identifier of the driver to be assigned to the updated route.

RouteRemarks
string | null

Additional updated remarks or notes related to the route.

RouteStatusId
integer<int32>

The updated status identifier of the route, indicating its current status.

Response

200 - application/json

The updated route details.

RouteId
integer<int64>

The unique identifier of the route.

DriverId
string<uuid> | null

The unique identifier of the driver assigned to the route.

DriverName
string | null

The name of the driver assigned to the route.

DriverMobile
string | null

The mobile phone number of the driver assigned to the route.

RouteName
string | null

The name of the route.

RouteCode
string | null

The code used to identify the route.

RouteRemarks
string | null

Additional remarks or notes related to the route.

RouteStatusId
integer<int32>

The status identifier of the route, indicating its current status.

RouteMachineCount
string | null

The number of machines assigned to the route.

CreatedDt
string<date-time>

The date and time when the route was created.

CreatedBy
integer<int64>

The identifier of the user who created the route.

UpdatedDt
string<date-time> | null

The date and time when the route was last updated.

UpdatedBy
integer<int64> | null

The identifier of the user who last updated the route.