FieldEx Developer
developer notes

Update Site Contact

The SiteContactUpdate API allows you to update an existing Site Contact. The request body includes full name, email, phone number, and other relevant information.

Method API Endpoint
PUT {{endpoint}}/api/ext/contacts

Headers

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

Example Body

{
    "title": "",
    "fullName": "edited",
    "email": "test@custella.com",
    "phone": "1221212323233",
    "type": "PUBLIC",
    "department": "null",
    "designation": "Mr.",
    "fax": "null",
    "externalId": "null",
    "enableCustomerPortal": "false",
    "customer": "null",
    "site": {
        "externalId": "1"
    },
    "project": "null"
}

Example Response

// 400 Response Code 

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