For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Postman
PricingEnterprise
Contact SalesSign InSign Up for Free
    • Help
      • Overview
        • How to dynamically set the initial value for a variable
        • How to persist variable values
        • How to dynamically update multiple requests
        • How to add a proxy to the operating system
        • I'm experiencing a long response time
        • How to install Newman
        • How to use cookies in scripts
        • How to save a response as a variable and reuse it for another API call
Postman API Platform

Product

  • Postman Overview
  • Enterprise
  • Spec Hub
  • Flows
  • Agent Mode
  • API Catalog
  • Fern
  • Postman CLI
  • Integrations
  • Workspaces
  • Plans and pricing

API Network

  • App Security
  • Artificial Intelligence
  • Communication
  • Data Analytics
  • Database
  • Developer Productivity
  • DevOps
  • Ecommerce
  • eSignature
  • Financial Services
  • Payments
  • Travel

Resources

  • Postman Docs
  • Academy
  • Community
  • Templates
  • Intergalactic
  • Videos
  • MCP Servers

Legal and Security

  • Legal Terms Hub
  • Terms of Service
  • Postman Product Terms
  • Security
  • Website Terms of Use

Company

  • About
  • Careers and culture
  • Contact us
  • Partner program
  • Customer stories
  • Student programs
  • Press and media
Twitter iconLinkedIn iconGithub iconYouTube iconInstagram iconDiscord icon
Download Postman
Privacy Policy

© 2026 Postman, Inc.

On this page
  • Persist all current values
  • Persist only some of the current values
  • Programmatically update initial values from pre-request or test scripts
FAQsSending requests

How to persist variable values

||View as Markdown|
Was this page helpful?
Previous

How to dynamically set the initial value for a variable

Next

How to dynamically update multiple requests

Built with

Persisting variable values 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
  • Persist only some of the current values
  • Programmatically update initial values from pre-request or test scripts

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. Refer to the following article to learn how to do this: How to dynamically set the initial value for a variable.


Have more questions? Submit a request