Perform batch operations on a person's fields
Changed on| ⚠️ This endpoint is currently in BETA |
|---|
Perform batch operations on a person's fields.
Currently the only operation at the endpoint is update-fields, which allows you to update multiple field values with a single request. This is equivalent to calling the single field update endpoint multiple times. You can update up to 100 fields per request.
Request
- Base URLhttps://api.affinity.co
- URLhttps://api.affinity.co/v2/persons/{personId}/fields
- AuthHTTP bearer
Path parameters
Person ID
Request body
Example request
{
"updates": [
{
"id": "affinity-data-location",
"value": {
"type": "company-multi",
"data": [
{
"id": 1
},
{
"id": 2
}
]
}
}
]
}Response
OK
Changes
- info
added
update-fieldsmapping keys to the request discriminator - info
added
company-multicompanydatetimedropdowndropdown-multinumbernumber-multilocationlocation-multipersonperson-multiranked-dropdownfilterable-textfilterable-text-multitextdiscriminator mapping keys to the///request property - info
added
authenticationauthorizationbad-requestconflictmethod-not-allowednot-acceptablenot-foundnot-implementedrate-limitservertimeoutunprocessable-entityunsupported-media-typevalidationdiscriminator mapping keys to the/response property for the response status - info
added
bad-requestvalidationdiscriminator mapping keys to the/response property for the response status
- info