Skip to main content
POST
Reorder visits

Authorizations

Authorization
string
header
required

Use a valid Bearer token to authenticate.

Body

application/json
currentCoordinate
string
required

Where the driver is now, as lat,lng. The new order starts from here. Example: -6.2000,106.8166

visits
object[]
required

Ongoing visits of the driver to put in the best order.

vehicleId
string

Vehicle whose ongoing tasks are reordered. Example: 65c3a1b2c3d4e5f600000001

Response

The tasks have the new order.

status
boolean

true when the tasks were reordered.

statusCode
integer

200.

data
object[]

One entry per task that was reordered, in the new order.