# Can I add a variable within a variable

**URL:** <https://community.postman.com/t/can-i-add-a-variable-within-a-variable/15965>\
**Category:** Help Hub\
**Created:** [September 17, 2020, 5:17pm UTC](https://community.postman.com/t/can-i-add-a-variable-within-a-variable/15965 "2020-09-17T17:17:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![martigi](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@martigi](https://community.postman.com/u/martigi)\
**Post date:** [September 17, 2020, 5:17pm UTC](https://community.postman.com/t/can-i-add-a-variable-within-a-variable/15965/1 "2020-09-17T17:17:13Z")

</div>

Can I have a variable within a variable? There is a variable that changes after each release (version number) and will change the url each time.

For example, the url is this:

[http://someapisit/v.27.22.001/api/something/searchall?phonenumber=9999999999](http://someapisit/v.27.22.001/api/something/searchall?phonenumber=9999999999)

I want to make the environment variable be this: {{[http://someapisit/v.27.22.001/api/something](http://someapisit/v.27.22.001/api/something)}} , BUT I know that the version number (v.27.22.001) will change after next release.

Is this possible?

---

<div class="post-metadata">

**Author:** ![Kurmavatar](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kurmavatar/32/3026_2.png) [@Kurmavatar](https://community.postman.com/u/Kurmavatar)\
**Post date:** [September 18, 2020, 5:44am UTC](https://community.postman.com/t/can-i-add-a-variable-within-a-variable/15965/2 "2020-09-18T05:44:14Z")

</div>

Hi @martigi

Welcome to the community 👋

I believe it’s not possible to declare a variable within a variable. Based on your requirement, I would suggest splitting the URL such that the version could easily be updated the next time.

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/4/4/4407202b1a01ca4ac1d7efbebc0c8e91a8e63e22.png)

---

<div class="post-metadata">

**Author:** ![michal.robaszewski.j](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michal.robaszewski.j/32/5378_2.png) [@michal.robaszewski.j](https://community.postman.com/u/michal.robaszewski.j)\
**Post date:** [September 18, 2020, 7:32am UTC](https://community.postman.com/t/can-i-add-a-variable-within-a-variable/15965/3 "2020-09-18T07:32:35Z")

</div>

Its possible 🙂 and simple

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/4/1/418fd65826343c554088ab2c7c91ded5d1131bb2.png)

and in URL I use {{api\_App\_base}}
