Skip to main content

I’m making a POST request on https://api2.amplitude.com/2/httpapi,

 

This is the request body:

 

{"api_key": "******",

"options": {

"min_id_length": 1

 

},

"events":e{

"event_type":"LoggedOut",

"event_properties":{

"cause":"button",

"arbitrary":"properties"

},

"user_id":"785",

"time":1701869900,

"insert_id":"3b48b7-4c53-himanshukjaa"

}]

},

 

now for that particular user_id, the user_properties were already set and pushed on amplitude by ios team of my firm, when I’m making this request I’m loosing those properties on amplitude and its getting overwritten, how to make the request so that user_properties aren’t changed?

Hi @Himanshu Itoria 
Once user properties are set on the user, they persist on all subsequent events until you explicitly update/unset those.

In your above call, it looks like there isn’t any explicit update done to user properties. So it shouldn’t erase your persisted user properties from previous calls.

You might also confirm if there are identify api calls being made which could be overwriting them.

Hope this helps.


Thanks! Makes sense, I was calling Identify api every time before this request


Reply