Getting details of a specific optimization job is possible through the endpoint https://api-35.elogii.com/jobs where the query parameter is the job UID. The details provided by this endpoint include timestamps, drivers included, number of tasks, and the history and current state of the optimization.
sample request
The Job UID can be found in the dashboard β action queue β details or from the API response received when running an optimization via API.
Sample response
[
{
"_id": "6619719659479c50ed9725a5",
"organization": "64706d34cb58b5e1345160d2",
"uid": "J-IJRC9BT8",
"name": "optimizeDates",
"queueName": "Optimization",
"state": "completed",
"progress": 100,
"data": {
................
},
"resources": {
"dates": [
20240412
],
"drivers": [
........................
],
"tasks": [
......................
],
"counts": {
..............
}
},
"teams": [
....................
],
"history": [
{
"state": "pending",
"timestamp": "2024-04-12T17:38:30.967Z",
"actor": {
...................
}
},
{
"data": {
"state": "running",
"startedAt": "2024-04-12T17:38:31.551Z"
},
"actor": {
........
}
},
{
"timestamp": "2024-04-12T17:39:26.019Z",
"state": "completed"
},
{
"data": {
"duration": 54
},
"actor": null
}
],
}
]