# Disable a Route with Kong API Gateway

**URL:** <https://discuss.konghq.com/t/disable-a-route-with-kong-api-gateway/3735>\
**Category:** General\
**Tags:** kong-gateway\
**Created:** [June 12, 2019, 5:09pm UTC](https://discuss.konghq.com/t/disable-a-route-with-kong-api-gateway/3735 "2019-06-12T17:09:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhi\_Desai](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/abhi_desai/32/1104_2.png) [@Abhi\_Desai](https://discuss.konghq.com/u/Abhi_Desai)\
**Post date:** [June 12, 2019, 5:09pm UTC](https://discuss.konghq.com/t/disable-a-route-with-kong-api-gateway/3735/1 "2019-06-12T17:09:05Z")

</div>

We have a service pointing to the backend in the Kong API Gateway. And each service has multiple routes associated with it.

I would like to disable/enable individual Routes in Production. Looking at the Admin API documentation, ‘Update Route’ API does not have any property to disable/enable the route.

---

<div class="post-metadata">

**Author:** ![tr00mb](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/tr00mb/32/660_2.png) [@tr00mb](https://discuss.konghq.com/u/tr00mb)\
**Post date:** [June 13, 2019, 1:03pm UTC](https://discuss.konghq.com/t/disable-a-route-with-kong-api-gateway/3735/2 "2019-06-13T13:03:04Z")

</div>

Hi,  
The way that I would do it :  
Put the request-termination plugins on each route that you want to disable/enable.  
And then PATCH the plugins with enabled=false (for route enabled) or enabled=true (for route disabled).  
You can configure the request-termination plugins with http code and message that you want to return when you consider that a route is disabled. (cf. [https://docs.konghq.com/hub/kong-inc/request-termination/](https://docs.konghq.com/hub/kong-inc/request-termination/))

---

<div class="post-metadata">

**Author:** ![Abhi\_Desai](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/abhi_desai/32/1104_2.png) [@Abhi\_Desai](https://discuss.konghq.com/u/Abhi_Desai)\
**Post date:** [June 13, 2019, 3:25pm UTC](https://discuss.konghq.com/t/disable-a-route-with-kong-api-gateway/3735/3 "2019-06-13T15:25:02Z")

</div>

Thanks Yohann 🙂
