FieldEx Developer
developer notes

Update Project

The ProjectUpdate API allows you to update an existing Project. The request body includes name, project type, category type, and other relevant information.

Method API Endpoint
PUT {{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": "sdsd",
    "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",
    "sites": "[]"
}

‍

Example Response

‍

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