# What determines when a service's url will change?

**URL:** <https://forum.serverless.com/t/what-determines-when-a-services-url-will-change/1993>\
**Category:** Serverless Framework\
**Created:** [June 1, 2017, 8:23pm UTC](https://forum.serverless.com/t/what-determines-when-a-services-url-will-change/1993 "2017-06-01T20:23:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrr](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@mrr](https://forum.serverless.com/u/mrr)\
**Post date:** [June 1, 2017, 8:23pm UTC](https://forum.serverless.com/t/what-determines-when-a-services-url-will-change/1993/1 "2017-06-01T20:23:11Z")

</div>

I’m planning to restructure my services, and I’d like to understand what determines when a new API gateway URL will be assigned after deployment. Is it just a function of the name of the service?

---

<div class="post-metadata">

**Author:** ![DavidWells](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/davidwells/32/201_2.png) [@DavidWells](https://forum.serverless.com/u/DavidWells)\
**Post date:** [June 1, 2017, 8:28pm UTC](https://forum.serverless.com/t/what-determines-when-a-services-url-will-change/1993/2 "2017-06-01T20:28:59Z")

</div>

Two things:

1. `sls remove` will change the base urls
2. changing paths in the http event will obviously change the paths on the API gateway url returned

`sls remove` is the one to watch out for. If for some reason you need to tear down the stack and re-deploy, the random string appended to API gateway URLs will change.

PS we are working on some things to make it so users don’t need to worry about this in the future =)
