# Enabling disabling Kong plugin using Curl

**URL:** <https://discuss.konghq.com/t/enabling-disabling-kong-plugin-using-curl/9141>\
**Category:** General\
**Created:** [October 5, 2021, 10:30am UTC](https://discuss.konghq.com/t/enabling-disabling-kong-plugin-using-curl/9141 "2021-10-05T10:30:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AI12345](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@AI12345](https://discuss.konghq.com/u/AI12345)\
**Post date:** [October 5, 2021, 10:30am UTC](https://discuss.konghq.com/t/enabling-disabling-kong-plugin-using-curl/9141/1 "2021-10-05T10:30:54Z")

</div>

So i can create a Kong request-temrination plugin using curl using the following:

curl -X POST http://{HOST}:8001/services/{SERVICE}/plugins   
–data “name=request-termination”   
–data “config.status\_code=403”   
–data “config.message=So long and thanks for all the fish!”

However i want have a few of these plugins for different services, i want to be able to disable the plugin for a service using the service name and plugin name, is this possible:

If i use the following it works fine:

/plugins/plugin id

IS there a way i could do

/services/{service name or id}/plugins/{plugin id}

but use the plugin name like

services/service-x/plugins/request-termination

and pass in the payload of enabled:true

Im trying to avoid having to ind out the plugin id… byt doing a

GET  
services/service-x/plugins

---

<div class="post-metadata">

**Author:** ![joedas](https://avatars.discourse-cdn.com/v4/letter/j/7993a0/32.png) [@joedas](https://discuss.konghq.com/u/joedas)\
**Post date:** [October 6, 2021, 4:01pm UTC](https://discuss.konghq.com/t/enabling-disabling-kong-plugin-using-curl/9141/2 "2021-10-06T16:01:49Z")

</div>

Hi AI12345,

Welcome! Unfortunately, it does not look like this is possible as it performs a lookup by the UUID in the table.
