parcelvoy / platform

Parcelvoy: Open source multi-channel marketing automation platform. Send data-driven emails, sms, push notifications and more!
https://parcelvoy.com
Other
188 stars 32 forks source link

Q: Does Parcelvoy merge user attributes across multiple calls to the /identify API? #435

Closed mattes3 closed 3 months ago

mattes3 commented 3 months ago

What happens if I call /identify twice, using the same external_id but different data attributes for my user? Will they add up in the same user entry in the database? (At least that is what I would expect).

pushchris commented 3 months ago

Correct, however it does a soft merge replacing existing values with new ones. Take that into account when passing up objects for example or arrays. Two arrays wont be merged together, the first one will be replaced by the subsequent one