FieldEx Developer
developer notes

Update Task

The TaskUpdate API allows you to update an existing Task record. The request body includes location, task name, priority, and other relevant information.

Method Endpoint
PUT {{endpoint}}/api/ext/tasks

Headers

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

Example Request

{
    "id": 8589 ,
    "endDateTime": "2023-10-05T05:00:00.000Z" ,
    "endDateTime2": "2023-10-05T05:00:00.000Z" ,
    "hasBuffer": true ,
    "location": "KLIA Terminal 2 - International Arrival Hall, Kuala Lumpur International Airport, Sepang, Selangor, 64000, Malaysia" ,
    "priority": "Medium" ,
    "startDateTime": "2023-10-05T04:00:00.000Z" ,
    "startDateTime2": "2023-10-05T04:00:00.000Z" ,
    "taskName": "task1" ,
    "requiredSkill": "GENERAL" ,
    "taskStatus": "OPEN" ,
    "startBuffer": 15 ,
    "endBuffer": 15 ,
    "assignedUsersList": [
        {
            "owner": true ,
            "assignedTo": {
                "id": 1 
            }
        }
    ],
    "userDynamicSkillList": [],
    "showServiceChecklist": false ,
    "serviceChecklistRequired": false ,
    "showCustomerServiceReport": false ,
    "customerServiceReportRequired": false ,
    "showHandoverCertificate": false ,
    "handoverCertificateRequired": false ,
    "comingFrom": "Task" ,
    "site": {
        "externalId": "null" 
    },
    "project": {
        "externalId": "null" 
    },
    "customer": {
        "id": 3 ,
        "customerExternalId": "null" 
    },
    "assignedTo": {
        "login": "null" 
    },
    "team": {
        "externalId": "null" 
    },
    "stockCheck": {
        "runningNo": "null" 
    },
    "assignedBy": {
        "login": "null" 
    },
    "product": {
        "externalId": "null" 
    },
    "jobOrder": {
        "jobExternalId": null 
    },
    "assignedToLite": {
        "login": null 
    },
    "parentMode": "add" ,
    "externalId": null 
}

Example Response

//status - 200
{
    "assignStatus": "ACCEPTED" ,
    "description": "  " ,
    "endDateTime": "2023-11-27T07:00:00.000Z" ,
    "endDateTime2": "2023-11-27T07:00:00.000Z" ,
    "fixed": null ,
    "hasBuffer": true ,
    "location": "Kuala Lumpur International Airport, Kuala Lumpur International Airport, Sepang, Selangor, 64000, Malaysia" ,
    "locationName": null ,
    "latitude": 2.7542288 ,
    "longitude": 101.70432 ,
    "priority": "Medium" ,
    "startDateTime": "2023-11-27T06:00:00.000Z" ,
    "startDateTime2": "2023-11-27T06:00:00.000Z" ,
    "taskName": "TestNov27" ,
    "taskStatus": "OPEN" ,
    "requiredSkill": "GENERAL" ,
    "startBuffer": 15 ,
    "endBuffer": 15 ,
    "placeId": null ,
    "taskType": null ,
    "assignedUsersList": [
        {
            "id": 10442 ,
            "assignedStatus": "ACCEPTED" ,
            "taskStatus": "OPEN" ,
            "assignedDate": "2023-11-27T05:35:23Z" ,
            "deciinedReason": null ,
            "taskId": 9335 ,
            "taskName": "TestNov27" ,
            "assignedTo": {
                "id": 3 ,
                "firstName": "Technician" ,
                "lastName": "User" ,
                "fullName": "Technician User" ,
                "email": "preeti@fieldex.com" ,
                "imageUrl": null ,
                "phone": "0122468589" ,
                "locationLattitude": 7.257747 ,
                "locationLongitude": 80.445915 ,
                "skillDescription": null ,
                "maxShiftHourType": "DAY" ,
                "maxShiftHousrsPerDay": 8 ,
                "shiftWorking": 0 ,
                "userType": null ,
                "login": "load.tech1@trial.custella.com" ,
                "timezone": "Asia/Kuala_Lumpur" ,
                "userDomain": null ,
                "notifyManager": null ,
                "employeeNo": null ,
                "status": null ,
                "online": false 
            },
            "assignedBy": {
                "id": 3 ,
                "firstName": "Technician" ,
                "lastName": "User" ,
                "fullName": "Technician User" ,
                "email": "preeti@fieldex.com" ,
                "imageUrl": null ,
                "phone": "0122468589" ,
                "locationLattitude": 7.257747 ,
                "locationLongitude": 80.445915 ,
                "skillDescription": null ,
                "maxShiftHourType": "DAY" ,
                "maxShiftHousrsPerDay": 8 ,
                "shiftWorking": 0 ,
                "userType": null ,
                "login": "load.tech1@trial.custella.com" ,
                "timezone": "Asia/Kuala_Lumpur" ,
                "userDomain": null ,
                "notifyManager": null ,
                "employeeNo": null ,
                "status": null ,
                "online": false 
            },
            "checkedIn": false ,
            "owner": true 
        }
    ],
    "userDynamicSkillList": [],
    "repeatFrequency": null ,
    "generateJobOrder": null ,
    "selectJobOrder": true ,
    "showServiceChecklist": null ,
    "serviceChecklistRequired": null ,
    "showCustomerServiceReport": null ,
    "customerServiceReportRequired": null ,
    "showHandoverCertificate": null ,
    "handoverCertificateRequired": null ,
    "comingFrom": "Task" ,
    "site": null ,
    "project": null ,
    "checklistRecordId": null ,
    "pmvId": null ,
    "customer": {
        "id": 3 
    },
    "team": {
        "id": 2 
    },
    "displayTeamName": "QA" ,
    "id": 9335 
}