FieldEx Developer
developer notes

Patch Job Order

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

Method API Endpoint
PATCH {{endpoint}}/api/ext/job-orders

Headers

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

Example Request

{
    "jobOrder": {
        "jobOrderNumber": "JO-034886",
        "jobOrderName": "jobOrder1",
        "installationDate": "2023-10-05",
        "installationTime": "2023-10-05T02:12:53.000Z",
        "completionDate": null,
        "status": "OPEN",
        "completionTime": null,
        "jobExternalId": "19319000lll0",
        "orderAmount": null,
        "jobSfExternalId": null,
        "contactPersonName": null,
        "contactPersonEmail": null,
        "contactPersonPhone": null,
        "resolution": null,
        "description": null,
        "jobDescription": null,
        "installationStreet": null,
        "installationCity": null,
        "installationState": null,
        "installationPostalCode": null,
        "installationCountry": null,
        "createdDateTime": "2023-10-05T02:15:13Z",
        "modifiedDateTime": "2023-10-05T02:15:13Z",
        "placeId": null,
        "includePrice": false,
        "showServiceChecklist": false,
        "showCustomerServiceReport": false,
        "showHandoverCertificate": false,
        "serviceChecklistRequired": false,
        "customerServiceReportRequired": false,
        "handoverCertificateRequired": false,
        "systemValue": "",
        "redFlag": false,
        "medicalRecordNumber": null,
        "origExt": null,
        "ward": null,        
        "bed": null,
        "onCode": null,
        "onCodeMessage": null,
        "offCode": null,
        "offCodeMessage": null,
        "ipAddress": null,
        "hospitalCode": null,
        "fault": null,
        "additionalFaultsValue": null,
        "faultDetails": null,
        "resolutionValue": null,
        "additionalResolutionsValue": null,
        "resolutionComments": null,
        "openingDays": null,
        "workNotDoneReasonValue": null,
        "workNotDoneOther": null,
        "physicalDamage": false,
        "physicalDamageDescription": null,
        "bedStatus": null,
        "ableToFix": null,
        "recommendation": null,
        "billable": false,
        "daysCategory": null,
        "notifyCustomer": false,
        "checkInDuration": null,
        "totalDistance": null,
        "travelDuration": null,
        "invoiceNumber": null,
        "assetUnderWarranty": false,
        "completionDateTime": null,
        "installationLatitude": null,
        "installationLongitude": null,
        "createdBy": {
            "id": 1,
            "login": "load.test1@trial.custella.com",
            "firstName": "Load",
            "lastName": "Adminnn",
            "imageUrl": null,
            "fullName": "Load Adminnn"
        },
        "orderOwner": {
            "id": 1,
            "login": "load.test1@trial.custella.com",
            "firstName": "Load",
            "lastName": "Adminnn",
            "imageUrl": null,
            "fullName": "Load Adminnn"
        },
        "modifiedBy": {
            "id": 1,
            "login": "load.test1@trial.custella.com",
            "firstName": "Load",
            "lastName": "Adminnn",
            "imageUrl": null,
            "fullName": "Load Adminnn"
        },
        "customerPurchaseHistoryPickListLites": null,
        "uncompleatedJobOrder": null,
        "valueFault": null,
        "valueResolution": null,
        "additionalValueFaults": null,
        "additionalValueResolutions": null,
        "customerServiceReport": null,
        "serviceChecklist": null,
        "handoverCertificate": null,
        "ticket": null,
        "additionalFaults": null,
        "additionalResolutions": null,
        "workNotDoneReason": null,
        "hpForm": null,
        "deleted": false,
        "journeyStatusActive": false,
        "serviceZone": null
    },
    "jobOrderProductList": [],
    "maintenanceItem": null
}