Skip to main content
POST
/
v2
/
lists
/
{listId}
/
list-entries
/
{listEntryId}
/
fields
/
{fieldId}
curl --request POST \
  --url https://api.affinity.co/v2/lists/{listId}/list-entries/{listEntryId}/fields/{fieldId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "value": {
    "type": "company",
    "data": {
      "id": 1
    }
  }
}
'
{
  "errors": [
    {
      "code": "bad-request",
      "message": "🚨 Error! Sound the alarm! 🚨"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

listId
integer<int64>
required

List ID

Required range: 1 <= x <= 9007199254740991
listEntryId
integer<int64>
required

List Entry ID

Required range: 1 <= x <= 9007199254740991
fieldId
string
required

Field ID

Body

application/json
value
CompaniesValueUpdate · object
Example:
{
"type": "location",
"data": {
"continent": "North America",
"country": "United States",
"streetAddress": "1 Main Street",
"city": "San Francisco",
"state": "California"
}
}

Response

No Content