I have an event flow that creates a custom property for the user called “latestPoem” and sets it with a generic value. Now that I have this custom property in the users profile I would like to update the value for it using a custom variable that contains a unique short poem related to the user.
From my understanding this should be possible using the identify API but I am getting the result 0 when I try to do this:
'data', `{"token": "${token}","properties": {"$email":"${email}", "latestPoem": "${poem}"}}`)
When I remove the variable latestPoem I get a result 1 meaning success:
'data', `{"token": "${token}","properties": {"$email":"${email}"}}`)
Does the identify API not support the updating of custom profile properties? From my understanding it does. Is there another way to do this? Am I formatting my request incorrectly? Do I need to use a different API?