FieldEx Developer
developer notes

Create Project Contact

The ProjectContactCreate API allows you to create a new project 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 Request

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

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"
}