Updating a multi-value field of a contact via api results in loosing the existing value

Hello,

I’ve tried to update a multiple field “animal” via the endpoint /v3/contacts/

Let’s say, the possible values of this field are ‘dog’,’cat’ and ‘fish’.

If the contact has ‘cat’ as value and I update the contact with the following body:

{”attributes”: {”animal”: [ “fish” ]}}

Then the contact looses the existing value ‘cat’ and has only the new value ‘fish’. Is there a way, to add a value, keeping the existing values?

Hi there, unfortunately, under the existing configuration, you would need to add the existing conditions too. Otherwise, it may be easier to add a separate boolean (yes/no) contact attribute for each attribute, but you’ll need a call for each update. I hope this helps.