Skip to main content
All CollectionsAPI
API│Manual Task assignment
API│Manual Task assignment
e
Written by eLogii
Updated over 5 months ago

As is the case on the eLogii dashboard, Tasks can also be manually assigned via the API. This can be done using the POST request on the endpoint /tasks/assignManually.

Sample request payload

{

"taskIds": [
"65387e0883982d0ae43814fa"
],
"driverId": "64d640028dfc81c11bda5b85",
"date": 20231030

}

Sample response

{
"result": 1,
"errors": [],
"ids": [
"65387e0883982d0ae43814fa"
]
}

The task ID’s can be found in the response received when passing the requests GET/tasks (retrieving Tasks) and POST/tasks (task creation). The driver ID can be found in the response received after passing requests GET/drivers (retrieving drivers) and POST/drivers (driver profile creation).

Driver ID

NOTE:

Manual Task assignment may result in an unconstrained route, so constraints such as time windows, Driver Schedules, Service duration, and Vehicle capacity may not have been honored when creating the route.

To learn more about ‘unconstrained routes’ head over to our article here

Did this answer your question?