Skip to main content

Hi Amplitude Community,

Be use SDK and HTTP API to log events and user properties. The user properties set by the API change the default properties set by Amplitude SDK. However I don’t want the default properties to be changed. I just want to add a new user property. How can I configure the system to not change unsent properties. 

Could you suggest me a way?

Best

Hi @Güner Bayram 

Here’s a detailed explanation of how Amplitude updates user properties  - https://help.amplitude.com/hc/en-us/articles/115002380567#h_856d23e3-10ea-4398-a50d-4982a42d1f3f

 

From your question, it looks like you are resetting your default Amplitude properties by applying a different set of values when sending events with HTTP API.
You can just update or add new user properties using the user_properties
key in your event object without explicitly sending values for the following keys

These can be mapped to the default SDK properties as seen here - https://help.amplitude.com/hc/en-us/articles/115002380567#h_39e46c92-7b7f-4358-a96f-c82cc3342e3e


Let me know if I have interpreted your use case correctly. Hope this helps.


Thank you for your answer @Saish Redkar,
We update user properties without sending an event. However the evenst we sent via HTTP API still overwrite default user properties. Is there any way to prevent overwriting default event properties except sending them with the event? What I want is basically to keep default properties unchanged with API events.

Best


Can you verify from a sample HTTP API call if the payload contains new values for default user properties compared to the previous event?


Reply