FieldEx Developer
developer notes

Patch Task

The PartialUpdate API allows you to update a subset of the fields in the task record. This is useful in cases where you need to update a task without having to update all of the fields.

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

Headers

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

Example Request

{
        "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": "43782873426"
    },
    "project": {
        "externalId": "123"
    },
    "customer": {
        "id": 3,
        "customerExternalId": "null"
    },
    "assignedTo": {
        "login": "arfan@lavalabs.net"
    },
    "team": {
        "externalId": "Team1"
    },
    "stockCheck": {
        "runningNo": "SC-000022"
    },
    "assignedBy": {
        "login": "arfan2@custella.com"
    },
    "product": {
        "externalId": "External"
    },
    "jobOrder": {
        "jobExternalId": "19319000lll0"
    },
    "assignedToLite": {
        "login": "arfan@lavalabs.net"
    },
    "parentMode": "add",
    "externalId": "task1"
}


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": 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
    }
  ],
  "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
}