FieldEx Developer
developer notes

Create Task Journey

The TaskCreateJourney API allows you to create a new Task Journey. The request body includes address, coordinate, start location, and other relevant information.

Method Endpoint
POST {{endpoint}}/api/ext/user-location-route-tables/save

Headers

Key Value
Content-Type application/json
Authorization Bearer{{token}}

Example Request

{
    "endLocation": {
        "address": "Kuala Lumpur International Airport, Kuala Lumpur International Airport, 64000 Sepang, Selangor, Malaysia" ,
        "coordinate": {
            "latitude": 2.7542289 ,
            "longitude": 101.7043235 
        }
    },
    "startDateTime": "2023-03-20T15:00:00.000Z" ,
    "startLocation": {
        "address": "Jalan Tengku Peteri 1, Straits View, Johor Bahru, Johor, 80200, Malaysia" ,
        "coordinate": {
            "latitude": 1.46151 ,
            "longitude": 103.736 
        }
    },
    "taskId": 200 ,
    "userId": 1 ,
    "fromTaskId": null ,
    "toTaskId": null ,
    "startTime": "11:00 PM" ,
    "toType": null ,
    "fromType": "Home" 
}


Example Response

//status - 200
{
    "message": "Success" ,
    "newRecordId": 66 ,
    "tripId": null ,
    "task": null ,
    "uuid": null ,
    "driverOrderTripVM": null 
}