Solved

Why is the Update Profile API call converting single item list to a string?

  • 1 July 2022
  • 1 reply
  • 60 views

Badge +5

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?

icon

Best answer by Taylor Tarpley 1 July 2022, 21:55

View original

1 reply

Userlevel 7
Badge +60

Hi @Digimatic

 

Thanks for sharing your question with us! 

 

I’m going to collaborate with some specialist in order to discover the solution here!

 

Thanks for patience and for participating in the Community!

 

-Taylor


 

Later Edit: While a conversation was started with our Support Team, this Community member did not respond. If you are having the same issue, an awesome member of our support team was going to further investigate this issue by creating a new profile on their account and making the same call to try to both reproduce the issue and hopefully get it fixed for them. If you are having the same issue, I’d suggest reaching out to a member of our support team.

Reply