I recently made a change to our integration to use the “Update Profile” (https://a.klaviyo.com/api/v1/person/{person_id}) endpoint instead of the “Identify” endpoint to update customer properties.
When using Identify, I could have a property called “Club” that was a list of clubs they were a member of and if they’re only in one club, the value would be...
["My Club"]
Now with the Update Profile endpoint, it instead sets the value to
My Club
If I have more than one item in the list, it works as expected and sets it to
["My Club","My Other Club"]
But for single item lists, it converts it to a string. This is breaking my segments that were looking for things contained in a list, which worked fine with Identify. I’m passing the exact same arguments to the profile endpoint and getting different results.
Is there a way to force this property to be a “list” with one item in it?