FieldEx Developer
developer notes

Patch Projects

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

Method API Endpoint
PATCH {{endpoint}}/api/ext/projects

Headers

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

Example Request

{
    "name": "test project",
    "referenceNumber": "null",
    "startDateTime": "null",
    "endDateTime": "null",
    "projectType": {
        "code": "Project_Type"
    },
    "categoryType": {
        "id": "2"
    },
    "active": "true",
    "remark": "null",
    "description": "null",
    "source": "null",
    "paymentTerm": "null",
    "externalId": "123",
    "secondExternalId": "null",
    "contactPersonName": "null",
    "phone": "null",
    "phone2": "null",
    "email": "null",
    "fax": "null",
    "customer": {       
        "customerExternalId": "ARFA1"
    },
    "company": "null",
    "geoFence": {   
        "geoFenceName": "worksiteTest11"
    },
    "serviceZone": {     
        "code": "Singapore"
    },
    "projectCategory": {
        "code": "p1"
    },
    "projectStatus": {
        "name": "ps1"
    },
    "billingStreet": null,
    "billingCity": null,
    "billingState": null,
    "billingPostcode": null,
    "billingCountry": null,
    "billingPlaceId": null,
    "billingLatitude": null,
    "billingLongitude": null,
    "billingLocation": null,
    "shippingStreet": null,
    "shippingCity": null,
    "shippingState": null,
    "shippingPostcode": null,
    "shippingCountry": null,
    "shippingPlaceId": null,
    "shippingLatitude": null,
    "shippingLongitude": null,
    "shippingLocation": null
}

Example Response

// 200 Response Code
{
    "type": "http://www.jhipster.tech/problem/problem-with-message",
    "title": "Project not found with project external Id : 123",
    "status": 400
}