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>"
}
Fields
Upsert Field Answer
Create or update a custom field answer for a contact or event call
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
API key required in Authorization header. Format: iclosed-<token>
Body
application/json