*** title: How to persist variable values description: >- Persisting variable values will replace initial values with current values. Note: To enhance the privacy of your environment variable data, the automatically... ---------------- [Persisting variable values](/docs/sending-requests/variables/variables/#sharing-and-persisting-data) will replace initial values with current values. * **Note:** To enhance the privacy of your environment variable data, the **automatically persist variable values** option in **Settings** has been removed from v8.0.8, and current values of variables no longer automatically persist to initial values when modified. This article helps you achieve one of the following options: * [Persist all current values](#h_01FG6S3GDMXEYYKDMAS0XP3SY2) * [Persist only some of the current values](#If-you-want-to-persist-only-some-of-the-current-values) * [Programmatically update initial values from pre-request or test scripts](#h_01FG6S443N959M4C9TB7DWX9CG) ## Persist all current values Select on **Persist All** button in the variable edit screens. ## Persist only some of the current values 1. Uncheck the variables you do not want to persist current values in the variable edit screens. 2. Select on **Persist All** button. ## Programmatically update initial values from pre-request or test scripts You can modify the initial value of a variable from a script using the [Postman API](https://www.postman.com/postman/postman-public-workspace/request/gwlw6in/update-an-environment?ctx=documentation). Refer to the following article to learn how to do this: [How to dynamically set the initial value for a variable](/help/faqs/sending-requests/how-to-dynamically-set-the-initial-value-for-a-variable). *** Have more questions? [Submit a request](/help/submit-request) ***