Skip to main content
POST
/
v1
/
fields
/
answer
curl --request POST \
  --url http://localhost:4000/v1/fields/answer \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "customFieldId": 1,
  "contactId": 100,
  "answer": [
    "42"
  ]
}
'
{
  "contactId": 123,
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedBy": {
    "id": 123,
    "firstName": "<string>",
    "lastName": "<string>"
  },
  "contact": {
    "id": 123,
    "firstName": "<string>",
    "lastName": "<string>",
    "email": "<string>",
    "previewId": "<string>",
    "phoneNumber": "<string>",
    "status": "<string>",
    "joinedTime": "<unknown>"
  },
  "CustomFieldAnswer": [
    {
      "customFieldRelationId": 123,
      "createdAt": "2023-11-07T05:31:56Z",
      "inputType": "<string>",
      "answer": "<string>",
      "number": 123,
      "date": "<unknown>",
      "customFieldOptionId": 123,
      "user": {
        "id": 123,
        "firstName": "<string>",
        "lastName": "<string>"
      },
      "userId": 123
    }
  ],
  "customField": {
    "id": 123,
    "name": "<string>",
    "inputType": "<string>",
    "type": "<string>",
    "isSystemField": true,
    "identifier": "<string>"
  },
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

API key required in Authorization header. Format: iclosed-<token>

Body

application/json
customFieldId
integer
Required range: x >= 1
identifier
string
Required string length: 1 - 1000
answer
string[] | null
contactId
integer
Required range: x >= 1
eventCallId
integer
Required range: x >= 1

Response

Custom field answer created successfully

contactId
number
createdAt
updatedBy
object
contact
object
CustomFieldAnswer
object[]
customField
object
message
string