Shiva,
Just to extend Andre's answer,
You cannot retain data between a get_entity set call and update entity call. (That is stateless. Each call is on its own and independent).
You need to pass the data to be updated as request body ( also called as payload) of your update request.
Thanks
Krishna