# How to add Parameters(params) while creating watcher (Threshold alert) via Webhooks?

**URL:** https://discuss.elastic.co/t/how-to-add-parameters-params-while-creating-watcher-threshold-alert-via-webhooks/219791
**Category:** Kibana
**Created:** [February 18, 2020, 1:15pm UTC](https://discuss.elastic.co/t/how-to-add-parameters-params-while-creating-watcher-threshold-alert-via-webhooks/219791 "2020-02-18T13:15:34Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![karthik2](https://avatars.discourse-cdn.com/v4/letter/k/bbe5ce/32.png) [@karthik2](https://discuss.elastic.co/u/karthik2)
#### Post date: [February 18, 2020, 1:15pm UTC](https://discuss.elastic.co/t/how-to-add-parameters-params-while-creating-watcher-threshold-alert-via-webhooks/219791/1 "2020-02-18T13:15:34Z")

</div>

Hi Team,

I tried to create a watcher(Threshold alert) with notification mechanism as Webhook. But when i'm providing the host name in the HOST field and the remaining entire information of the url in the PATH field. after a series of trails i came to an understanding that its not taking the parameters(params) which we specified in the url.

Ex: our url let's say **[https://integrations.api.net/integrations/alerts/webhook?vtoken=1234ryhdu678](https://integrations.api.net/integrations/alerts/webhook?vtoken=1234ryhdu678)**

in the UI i select scheme = https , host= [integrations.api.net](http://integrations.api.net), path= /integrations/alerts/webhook?vtoken=1234ryhdu678

but its not taking the parameter instead its taking entire value as path only.

but in case of advanced watcher as we are preparing json we can specify the field PARAMS and provide vtoken value in that and its working

Could you please provide me a solution as soon as possible on how to send the parameters in the threshold alert ?

NOTE:  
I'm able to send the params value in the json of the advanced watcher one but i'm not able to send it in threshold alert  
I'm getting 405 error

Please provide me a solution ASAP.

Kind Regards  
Karthik

---

<div class="post-metadata">

### Author: ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)
#### Post date: [March 14, 2020, 6:21am UTC](https://discuss.elastic.co/t/how-to-add-parameters-params-while-creating-watcher-threshold-alert-via-webhooks/219791/2 "2020-03-14T06:21:31Z")

</div>

Hi,

Can you share the output of the [Execute Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/7.4/watcher-api-execute-watch.html) for that watch?  
Here are some useful links for threshold alerts as well.  
[https://www.elastic.co/guide/en/kibana/6.8/watcher-create-threshold-alert.html](https://www.elastic.co/guide/en/kibana/6.8/watcher-create-threshold-alert.html)

More logs, would be helpful.

Thanks  
Rashmi

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [April 11, 2020, 6:21am UTC](https://discuss.elastic.co/t/how-to-add-parameters-params-while-creating-watcher-threshold-alert-via-webhooks/219791/3 "2020-04-11T06:21:36Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
