FieldEx Developer
developer notes

Create Site Contact

The SiteContactCreate API allows you to create a new Site Contact. The request body includes full name, email, phone number, and other relevant information.

Method API Endpoint
POST {{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 

{
    "entityName": "Site",
    "errorKey": "id null",
    "type": "http://www.jhipster.tech/problem/problem-with-message",
    "title": "Invalid Site External Id",
    "status": "400",
    "message": "error.id null",
    "params": "Site"
}