Updating Multiple Custom fields

Trying to use API 3 to update multiple custom fields in a single call.
I am not sure if this is possible - if not every - this API is very inefficient

end point is
xxxx.api-us1.com/api/3/fieldValues/{id}

I can update a single field but not multiple in a single call.
Is this possible?
trying to do this type of a call

{ “fieldValue”: { “contact”: 14636, “field”: 1, “value”: “04/21/2019”, “field”: 3, “value”: “85ACACA0-9F51-3A04-790C-E5932D99C60D” “field”: 4, “value”: “NO” }}

2 Likes

Hello there,

This is Andres from the Customer Experience team, I apologize we missed this when it was originally posted but I wanted to provide an updated response in case somebody is looking for an answer to this question.

In order to update several fields using only one API call we have this specific one Bulk update a custom field value. The format you would use looks something like this:
[
{
“id”: “1”,
“fieldValue”: “test title”
},
{
“id”: “2”,
“fieldValue”: [
“option 1”,
“option 3”,
“option 4”
]
},
{
“id”: “3”,
“fieldValue”: 9999,
“fieldCurrency”: “cad”
},
{
“id”: “4”,
“fieldValue”: “100.99”
}

I hope this helps! :smile: