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
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
Let me know if I have interpreted your use case correctly. Hope this helps.
Thank you for your answer
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
Welcome to the Amplitude Community!
If you don't have an Amplitude account, you can create an Amplitude Starter account for free and enjoy direct access to the Community via SSO. Create an Amplitude account. You can also create a Guest account below!
If you're a current customer, select the domain you use to sign in with Amplitude.
analytics.amplitude.com analytics.eu.amplitude.comWelcome to the Amplitude Community!
If you don't have an Amplitude account, you can create an Amplitude Starter account for free and enjoy direct access to the Community via SSO. Create an Amplitude account. Want to sign up as a guest? Create a Community account.
If you're a current customer, select the domain you use to sign in with Amplitude.
analytics.amplitude.com analytics.eu.amplitude.comEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.